![]() | Red Hat Certified System Administration 8 |
QuizzQuestion 1Which of the following commands would only show lines in the file /etc/passwd that start with the text anna? a. grep anna /etc/passwdb. grep -v anna /etc/passwd c. grep $anna /etc/passwd d. grep ^anna /etc/passwd D. When used in a regular expression, the ^ sign in front of the text you are looking for indicates that the text has to be at the beginning of the line. Question 2Which command was developed to show only the first ten lines in a text file? a. headb. top c. first d. cat A. The head command by default shows the first ten lines in a text file. Question 3Question 4Question 5Question 6+ Correction ---------------------------------------------------------- A- B- C- D- |