O'Reilly logo

CLI for Noobies: A Primer on the Linux Command Line by Joe Barr

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required