Posts

Showing posts with the label rmlint

Photos

In the process of backing up, de-duplicating and collating all the photos from my laptop, the external storage HDD etc. I used the following: $ du -sh Pictures/ du = disc usage -sh = summarise, human-readable Pictures/ = directory path $ find Pictures/ -type f | wc -l find = find Pictures/ = directory path -type f = specify type as file | wc -l = print newline counts (see wc --help for specifics) So it basically lists all the files in Pictures/ but instead of outputting to a txt file it pipes the results to wc, which reads stdout as if it was a txt file, and returns newlines (each of which corresponds to a file). I don't know whether directories are omitted or not. https://www.linux.com/learn/how-sort-and-remove-duplicate-photos-linux Now I skip down to the bit about FSlint, only I install rmlint instead, which seems to be the commandline equivalent recommended by Arch. $ rmlint On it's own looks for empty and duplicate files in the current directory. It ge...