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...


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.



May 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here