LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   show progress while using cp command (https://www.linuxquestions.org/questions/linux-newbie-8/show-progress-while-using-cp-command-4175450925/)

qweyu 02-20-2013 04:33 AM

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.

pan64 02-20-2013 04:55 AM

see here: http://www.linuxquestions.org/questi...ss-bar-407381/

mandyapenguin 02-20-2013 05:09 AM

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/



All times are GMT -5. The time now is 09:11 AM.