Chapter 28. GNU Find
We’ve talked about the find command in an earlier chapter, but this handy-dandy little locating service deserves more ink. Here it is.
The find command allows you to find a file or files by searching for them in a number of ways. Leaving aside the options for symbolic links—we’ll get to those in a minute—the basic format for the command is as follows:
linux~>find path expression |
The expression part of the command normally includes our search directives and ends with the default—and therefore not stated—option to print the results.
Sometimes the expression is more sophisticated: it can also be used to tell find to execute specific tests, execute a command, or delete a file.
Follow this Path
You don’t have to specify a starting point ...
Get CLI for Noobies: A Primer on the Linux Command Line now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.