nerdexam
GIAC

GSNA · Question #211

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…

Sign in or unlock GSNA to reveal the answer and full explanation for question #211. The question stem and answer options stay visible for context.

Linux/Unix System Auditing

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

Unlock GSNA to see the answer

You've previewed enough free GSNA questions. Unlock GSNA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#head command#Linux commands#/etc/passwd#file viewing
Full GSNA Practice