Red Hat Certified System Administration 8



Quizz

Question 1

Which of the following commands would only show lines in the file /etc/passwd that start with the text anna?

a. grep anna /etc/passwd
b. 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 2

Which command was developed to show only the first ten lines in a text file?

a. head
b. top
c. first
d. cat

A. The head command by default shows the first ten lines in a text file.

Question 3




Question 4




Question 5




Question 6









+ Correction


---------------------------------------------------------- A-
B-
C-
D-


Eninam BAGNABANA     |         |     bagnadavid@outlook.fr     |