From:here
"The world's most painful thing is waiting," I believe that the use of the shell in the CP or MV command to operate large files of friends have this feeling. It would be nice to be able to show the progress of copying or moving, and to turn endless waiting into limited anticipation. Actually, there is a way to show the progress bar, and there are more than one method: using patched cp and mv:advanced Copy
1 2 3 4 5 6 7 8 9 10 11 12 13
|
wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.4.tar.gz tar xvzf coreutils-8.4.tar.gz CD coreutils-8.4/ wget Http://beatex.org/web/advcopy/advcpmv-0.3-8.4.patch patch -p1-i advcpmv-0.3-8.4.patch ./configure make sudo cp src/ CP /usr/local/ BIN/CPG sudo cp src/ MV /USR/LOCAL/BIN/MVG #vim ~/.bashrc alias Cpg= "/usr/local/cpg-g" alias mvg= "/usr/local/mvg-g" |
Ps:an update is scheduled to being released in just three weeks, on March 24, 2012
using rsync
1 2
|
alias rscp= "RSYNC-AHP" alias rsmv= "RSYNC-AHP--remove-source-files" |
using the SCP
using bar
1 2 3 4 |
#Copy a file Bar-o outfile infile #Copy several files to another directory (showing a common progress bar) Bar-c ' Cat ' outdir/${bar_file} ' file1 file2 file3 |
using PV