If you are using the graphical user interface (GUI), then you will likely be using KDE. If so, then you can quickly search for files in KDE as well. By going to the main menu and selecting Find Files, you will open a dialog box. Once you see the dialog box, it should be self-explanatory. Instead of adding the commands you need (like find, whereis, and which), the Find Files dialog box will ask you what you are looking for (and where) and search that exact location for what you want. This dialog box contains the same features of the command-line versions of find and grep. KDE has provided a GUI for these functions that make them easier to use. Again, you may prefer to use the shell prompt. The shell prompt helps you learn all the intricacies of the command, and the more commands you know, then the more scripting you will be able to handle when we get to Lesson 14, "Shell Scripting Fundamentals." Now that you know and understand all the different utilities you can use, we will search for files on your Unix system with KDE. To search in the KDE, do the following:
To search for files, you can specify what file you want and then run your search. You can change where you are searching as well as what criteria you are searching for. Using the shell prompt commands or the KDE GUI, you can search using the following criteria: date, size, location, and name. Now you should see the file you want. You can select the file and work with it, or you can just close the search. Either way, this concludes our discussion of how to find files within your Unix system.
As we move into the next lesson, please remember what you have learned so far. Lessons build upon each other, so if you have any questions, you should review your work before moving forward. Unix mastery comes from doing things repetitively. Repetition builds memory, and before you know it, you will be rattling off Unix commands and amazing everyone with your shell-scripting skills. In the next lesson, we will cover how to perform basic file maintenance functions such as creating and deleting files and directories. |