nerdexam
GIAC

GSNA · Question #211

GSNA Question #211: Real Exam Question with Answer & Explanation

The correct answer is A. head -n 5 /etc/passwd. The head -n 5 /etc/passwd command will show the first 5 lines of the file /etc/passwd.

Question

You work as the Network Administrator for XYZ CORP. The company has a Linux-based network. You are a root user on the Red Hat operating system. You want to see first five lines of the file /etc/passwd. Which of the following commands should you use to accomplish the task?

Options

  • Ahead -n 5 /etc/passwd
  • Bhead 5 -n /etc/passwd
  • Ctail -n 5 /etc/passwd
  • Dhead /etc/passwd

Explanation

The head -n 5 /etc/passwd command will show the first 5 lines of the file /etc/passwd.

Community Discussion

No community discussion yet for this question.

Full GSNA Practice