If you copy large files and hate not to know when the copy is going to be finished then this post will interest you.
Here is what you can do to fix that problem:
install pv (yum|port|apt-get install pv)
add the following function to you ~/.zsh|bash|*rc.
function pvcp() { SOURCE=$1 if [ -d $2 ] then DESTINATION=$2/`basename $SOURCE` else DESTINATION=$2 fi pv ${SOURCE} | > ${DESTINATION} }
source ~/.zsh|bash|*rc
You can now do:
pvcp <source> <destination>
And here is an example of what you should get:
pvcp /path/to/foo.avo /path/to/destination/ 702MB 0:01:27 [8.01MB/s] [===============[...]================>] 100%
:)
Comments !