How to find a file by name in folders with a command from the terminal?

Which Linux command is most suitable for this type of search?

Author: amiranys, 2010-10-10

2 answers

For such a search, the find command is suitable.

find . -name имя_файла -print
 9
Author: stanislav, 2010-10-15 17:21:15

If you have recently created a file, you need to use the following commands.

$ sudo updatedb - updating the file and directory database in the file system;

Then:

$ locate -i "имя_файла/имя_каталога" - find and display the full path to a file or directory, case-insensitive, in the specified file or directory.

 8
Author: elf1423, 2011-07-30 19:47:13