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” ( '*sync-conflict*'
):
$ find ~/Documents -type f -name '*sync-conflict*'
-type f
will only search for files-type d
will search only directories