As we will discuss in Chapter 23, the /etc directory is used to hold confi guration fi les (explained in Chapter 6). Create a command that looks through all the fi les in the /etc directory, searching for lines that contain the word “root”. The output should be displayed one screenful at a time. Hint: To specify the fi le names, use the pattern /etc/*.
Searching through the fi les in the /etc directory will generate a few spurious error messages. Create a second version of the command that suppresses all such messages.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here