Question: We use the find program in this lab. We will start with some basic commands. At its most basic, the command is used like this:
We use the find program in this lab. We will start with some basic commands. At its most basic, the command is used like this: find dir name string where dir is the starting directory (the find command performs a search from that point down in the hierarchy) and string describes the filename to match again (wildcards can be included).
a. Enter the command find /usr/sbin name user* to locate all of the files (commands) in /usr/sbin (and any subdirectories) that start with user. What files were found?
b. Enter a command to find all entries under /etc that end with .conf as an extension. What instruction did you use? Pipe the result to wc. How many entries were found?
c. Redo the first command you entered in part b without the pipe and scroll through the results. You will find in some cases the response: Permission denied. Why would you get this error?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
