LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2013, 04:33 AM   #1
qweyu
LQ Newbie
 
Registered: Jan 2012
Location: Kampala - Uganda
Distribution: Slackware 14.1
Posts: 21

Rep: Reputation: Disabled
show progress while using cp command


hi there,

just asking, is there a way to show progress while running a cp command in the linux terminal. I am using Ubuntu Desktop 12.10.
 
Old 02-20-2013, 04:55 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,970

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
see here: http://www.linuxquestions.org/questi...ss-bar-407381/
 
Old 02-20-2013, 05:09 AM   #3
mandyapenguin
Member
 
Registered: Nov 2011
Location: India
Distribution: RedHat, Cent OS, Fedora, Debian, Ubuntu
Posts: 106

Rep: Reputation: Disabled
You can try with verbose mode. But I am not sure whether you will see the progress in cp command, but you will see which files are being copied.
Code:
cp -v /file/to/copy /destination/directory/
or
cp -arvf /directory/to/copy/ /destination/directory/
Instead cp you can use rsync to see the progress. Rsync is widely used for backups and mirroring and as an improved copy command for everyday use.
Code:
rsync -avz --progress /file/to/copy /destination/directory/
or
rsync -avz --progress -e ssh /source/directory username@remote_PC_IP:/destination/directory/
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Progress with Nautilus script handband2 Programming 4 03-31-2012 03:22 AM
show cp progress with directories daisychick Linux - Newbie 12 02-16-2012 07:28 PM
[SOLVED] Is it possible to show the progress of a Perl script? The_Seraphim Programming 4 10-13-2009 10:31 PM
How to show a progress bar on the next line? Chowroc Programming 10 10-26-2005 10:27 PM
How to use mv in console to show progress? Alinuxnoob Linux - General 4 09-15-2004 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration