nerdexam
CompTIA

LX0-101 · Question #395

Which of the following commands 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

Which of the following commands 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

(30 responses)
  • A
    83% (25)
  • B
    3% (1)
  • C
    7% (2)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice