I often use cp to make backups (ok, I know sync is better, I just forget it. all the time).
So here's how you can monitor the cp progress (thanks to this amazing thread)
or
So here's how you can monitor the cp progress (thanks to this amazing thread)
$watch lsof -p `pgrep -x cp`
I'm totally adding this to my scripts. You need sudo though.
Also useful
$sudo ls -l /proc/PID/fd
or
$watch -n1 lsof -p$(pgrep -x cp)
The rsync command:
$rsync -avP FROM TO