Which of the following will look at the /etc/passwd file for any lines containing the word root and display them out to the screen while simultaneously writing the results to a file?

A. cat /etc/passwd | grep root | merge ~/root.txt
B. cat /etc/passwd | grep root >> ~/root.txt
C. grep root /etc/passwd | tee ~/root.txt
D. grep root /etc/passwd | split ~/root.txt


Answer: C

Computer Science & Information Technology

You might also like to view...

PAN is another term for private area network

Indicate whether the statement is true or false

Computer Science & Information Technology

Smurf and Fraggle are examples of what type of attack?

a. Gaining access b. Bandwidth consumption c. SYN Flood attack d. Program and application attacks

Computer Science & Information Technology

The objective of software project planning is to

A. convince the customer that a project is feasible.  B. enable a manager to make reasonable estimates of cost and schedule. C. determine the probable profit margin prior to bidding on a project. D. make use of historical project data.

Computer Science & Information Technology

A(n) ________ brochure is a document that has two pages with three columns on each page

Fill in the blank(s) with correct word

Computer Science & Information Technology