Chapter 7: How to Search and Find Files in Linux
In this chapter, youβll learn how to search for files and directories in Linux using find, locate, and whereis, with practical examples for beginners.
Welcome to Day 3.
During Day 2, you learned how the Linux filesystem is organised, how to create and manage files and directories, and how to get useful information from text.
So far, though, most of those tasks have been easier because you already knew where your files were.
That makes sense on your practice machine because you created the files yourself, but on a server built or managed by someone else, things are different.
You might be dealing with thousands of configuration files, logs, scripts, and user documents spread across directories you have never explored before.
In those situations, knowing how to work with a file is only useful if you can actually find it.
In Chapter 6, you learned how to search for information inside files. In this chapter, you will learn how to find the files themselves.