Linux 101: How to search for files from the Linux command line

Jack Wallen shows you how to locate files on the Linux directory hierarchy using the find command.

Image: Jack Wallen

Where did you leave that one particular configuration file you were just working on? You could start poking around in the directories that you assume might house the file using the ls command, but that could take far more time than you’d like to spend on this quest. Your best bet is to make use of the built-in CLI search tools, such as find. 

The find command is a powerful search command that can easily help you find the files you’re looking for. Let me show you how to use this built-in command.

SEE: A guide to The Open Source Index and GitHub projects checklist (TechRepublic Premium)

How to use the built-in find command

Let’s say you have a file named dev.conf and you can’t remember where you saved…

Keep reading the full content on the TechRepublic site.


Get Free Email Updates!

Signup now and receive an email once I publish new content.

I agree to have my personal information transfered to ConvertKit ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Spread the love

Leave a Comment