nerdexam
LPI

101-400 · 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

(37 responses)
  • A
    73% (27)
  • B
    5% (2)
  • C
    8% (3)
  • D
    14% (5)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice