nerdexam
LPI

101-500 · 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. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

GNU and Unix Commands

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

(30 responses)
  • A
    90% (27)
  • B
    7% (2)
  • D
    3% (1)

Explanation

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

Topics

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

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice