# Bash Commands ## Find ### Find and delete Find and delete command ```bash find / -name .DS_Store -delete ``` Alternative find and delete command ```bash find / -name ".DS_Store" -exec rm {} \; ``` the previous command is due that not all `find` have a delete funcion but with overhead of new process `-exec`. Find and delete with no overhead ```bash find / -name .DS_Store -print0 | xargs -0 rm ```