How to find files by name in GNU/Linux
To find files in GNU/Linux we usually use the find command.
In the following example we will search the Documents directory (
~/Documents) of the current user for all files (
-type f) that contain in their name (
-name) the text “sync-conflict” (
$ find ~/Documents -type f -name '*sync-conflict*'
-type fwill only search for files
-type dwill search only directories
- How to search the contents of files in GNU/Linux
- How to find and delete files by their name recursively in GNU/Linux