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…