A collection of personal and technical notes.
Find all files and folders, then delete them except the .git
directory.
find . -mindepth 1 ! -regex '^./\.git\(/.*\)?' -delete
Find a specific directory using it’s name.
find . -name 'folder-name' -type d