Today I wanted to clean up my computer a bit and decided to finally tackle my files.
Over time, I have accumulated duplicated files and empty folders and it was starting to irritate me to “think” I had saved something (because I saw the folder), only to realise the folder was empty (bad backup over the years, didn’t restore the files within it for example). So I decided to get rid of all duplicate files and empty folders. Here is how I did it :
Delete empty folders
find ~/ -type d -empty -delete
Find duplicate files
fdupes ~/ -r >> duplicate_files.txt or fdupes ~/ -r -d (to get prompted to delete the found files)
Hope this is useful to someone.