Personal docs on the find command
• Lastmod: 2019-09-12
find command options that I care about.
find . -type f -name ".*keep"
. – The directory to start the recursive search in. Use
/ to start in the root directory
-type f – Specify the file type as regular file. Another common usage would be
-type d for directory
-name ".*keep" – Pass a regex pattern for the file name. The
* here is used as a wildcard. To literally search for a file name containing
* then escape it like
Next: Make a beep sound when console outputs certain text
Previous: A minimal hugo blog layout