nerdexam
LPI

101-400 · Question #119

What command will generate a list of user names from /etc/passwd along with their login shell?

The correct answer is D. cut -d: -f1,7 /etc/passwd. See the full explanation below for the reasoning.

Question

What command will generate a list of user names from /etc/passwd along with their login shell?

Options

  • Acolumn -s : 1,7 /etc/passwd
  • Bchop -c 1,7 /etc/passwd
  • Ccolrm 1,7 /etc/passwd
  • Dcut -d: -f1,7 /etc/passwd

How the community answered

(56 responses)
  • A
    4% (2)
  • B
    9% (5)
  • C
    4% (2)
  • D
    84% (47)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice