nerdexam
LPI

101-350 · Question #60

What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?

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

Question

What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?

Options

  • Acut -d: -f1,3 /etc/passwd
  • Bchop -c 1,3 /etc/passwd
  • Ctac 1-3 /etc/passwd
  • Dfmt -u /etc/passwd

How the community answered

(22 responses)
  • A
    82% (18)
  • B
    5% (1)
  • C
    9% (2)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 101-350 Practice