nerdexam
LPI

101-500 · Question #486

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

The correct answer is B. cut -d : -f 1,4 /etc/passwd. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

GNU and Unix Commands

Question

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

Options

  • Afmt -f 1,4 /etc/passwd
  • Bcut -d : -f 1,4 /etc/passwd
  • Csort -t : -k 1,4 /etc/passwd
  • Dpaste -f 1,4 /etc/passwd
  • Esplit -c 1,4 /etc/passwd

How the community answered

(48 responses)
  • A
    6% (3)
  • B
    90% (43)
  • C
    2% (1)
  • D
    2% (1)

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#cut command#/etc/passwd structure#field extraction#text processing

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice