LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 05: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, 05:55 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
see here: http://www.linuxquestions.org/questi...ss-bar-407381/
 
Old 02-20-2013, 06: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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:22 AM
show cp progress with directories daisychick Linux - Newbie 12 02-16-2012 08:28 PM
[SOLVED] Is it possible to show the progress of a Perl script? The_Seraphim Programming 4 10-13-2009 11:31 PM
How to show a progress bar on the next line? Chowroc Programming 10 10-26-2005 11:27 PM
How to use mv in console to show progress? Alinuxnoob Linux - General 4 09-15-2004 07:23 PM


All times are GMT -5. The time now is 06:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration