Wednesday, July 20, 2016

How to merge folders from command line in Linux

The standard mv has no way to do this. Instead, use rsync.

rsync -av <source_folder> <target_folder> --remove-source-files

See: http://unix.stackexchange.com/questions/127712/merging-folders-with-mv

Tuesday, July 19, 2016

How to monitor the progress of system commands like mv, cp, rsync in Linux

http://unix.stackexchange.com/a/144284

https://github.com/Xfennec/progress


$ git clone git@github.com:Xfennec/progress.git
$ export PREFIX=<install_location>
$ make
$ make install

Then, to continuously monitor commands like mv, cp, rsync etc. simply run:
$ watch progress -q