rm !(*.foo|*.bar|*.baz)
rm -f !(survivior.txt)
find . -type d -empty -delete
du -s * | sort -n | tail
find -not -empty -type f -printf "%s\n" | sort -rn | uniq -d | xargs -I{} -n1 find -type f -size {}c -print0 | xargs -0 md5sum | sort | uniq -w32 --all-repeated=separate
or
fdupes -r .
find -type f -exec md5sum '{}' ';' | sort | uniq --all-repeated=separate -w 33 | cut -c 35-
or on a MacOS:
find . -type f -exec md5 '{}' ';' | sort | uniq -f 3 -d | sed -e "s/.*(\(.*\)).*/\1/"
sudo find / -mmin 60 -type f
find . -type f -newermt "2024-05-04" ! -newermt "2024-07-03"
mv filename.{old,new}
This command will replace all the spaces in all the filenames of the current directory with underscores. There are other commands that do this here, but this one is the easiest and shortest.
rename 'y/ /_/' *