This is a list of useful [[Linux]] Commands that I end up reaching for on a regular basis (not quite daily, but occasionally enough). ### Run a command on every file or folder in the current directory (chmod for example): ```bash find . -type d -exec chmod 755 {} \; # Directory find . -type f -exec chmod 664 {} \; # Files ``` Find substitutes `{}` in with the path. It needs an escaped semicolon `\;` at the end. Find does not ignore hidden files like `chmod -R [rwx] *` ### Fuzzy Finder `fzf` allows searching a directory with fuzzy matching ``` 'search would search for the word 'search' only ``` ## Delete all .DS_Store files DS_Store files are files that macOS makes to store Finder Metadata ```bash find . -name ".DS_Store" -type f -delete ```