403 B
403 B
Bash Commands
Find
Find and delete
Find and delete command
find / -name .DS_Store -delete
Alternative find and delete command
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
find / -name .DS_Store -print0 | xargs -0 rm