June 2025
Beginner to intermediate
1180 pages
37h 48m
English
Linux provides various options to search for files (see Table 9.5). The most suitable command depends on the type of file (text file, program, etc.) and what information is known—such as the parts of the file name or search terms for the content.
|
Command |
Function |
|---|---|
|
grep |
Searches for text in a text file |
|
find |
Searches for files by name, date, size, and so on |
|
locate |
Searches for files by their name |
|
whereis |
Searches for files in predefined directories |
|
which |
Searches for programs in PATH directories |
Table 9.5 Commands for Finding Files
which searches for the specified command. It returns the full name of the command that would ...
Read now
Unlock full access