сряда, 27 май 2020 г.

Monitor cp progress

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)
$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 

вторник, 26 май 2020 г.

How to rebuild system

sudo equo i $(equo q list installed -q) --ask