Skip to Content
Small, Sharp Software Tools
book

Small, Sharp Software Tools

by Brian P. Hogan
June 2019
Intermediate to advanced
328 pages
7h 27m
English
Pragmatic Bookshelf
Content preview from Small, Sharp Software Tools

Finding Files

Sometimes you just don’t know where to look for a file. Maybe you’ve misplaced it, or maybe you’re like me and you save everything you’ve ever done and have lost track of the file several months ago. GUI interfaces usually have some tool that can search through your disk and find files. A tool on the CLI does that too, and it’s the appropriately named find command.

With find, you can locate files by name, last modified date, or even by the content they contain.

In Creating and Reading Files, you created a file named greetings.txt in the ~/Desktop directory. Let’s use the find command to look for that file in the Desktop folder:

 $ ​​find​​ ​​~/Desktop​​ ​​-name​​ ​​"greetings.txt"
 /home/brian/Desktop/greetings.txt

The find ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The VimL Primer

The VimL Primer

Benjamin Klein
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781680507003Errata Page