User Tools

Site Tools


linux_notes

This is an old revision of the document!


tasks

remove large directories

mkdir empty_dir
rsync -a --delete empty_dir/    yourdirectory/

per https://unix.stackexchange.com/questions/37329/efficiently-delete-large-directory-containing-thousands-of-files this will be faster than “rm -rf” or find + “-exec rm -f”.

stackoverflow answers I came across

get file modified time in shell script

linux_notes.1633016812.txt.gz · Last modified: 2021/09/30 15:46 by raju