nerdexam
LPI

117-101 · Question #201

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: -fl,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: -fl,3 /etc/passwd
  • Bchop -c l,3 /etc/passwd
  • Ctac l-3 /etc/passwd
  • Dfmt -u /etc/passwd

How the community answered

(19 responses)
  • A
    74% (14)
  • B
    5% (1)
  • C
    16% (3)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 117-101 Practice