This is a draft cheat sheet. It is a work in progress and is not finished yet.
Merge Folders
rsync -abviuzP src/ dest/ |
-i itemized format, shows more information |
-b backup files that exist in both folders, appending ~ to the old file. You can control this suffix with --suffix .suf |
-u skip files which are newer in dest than in src |
-z turns on compression |
-P turns on --partial and --progress |
--partialc keep partially transferred files |
--progress shows a progress bar for each transfer |
|
|
Remove empty folders
find ./path -type d -empty -exec rm -rf \; |
Search File by name
find ./path -type f -name file.ext |
|
|
|