nerdexam
LPI

101-500 · Question #119

What command will generate a list of user names from /etc/passwd along with their login shell?

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

GNU and Unix Commands

Question

What command will generate a list of user names from /etc/passwd along with their login shell?

Options

  • Acolumn -s : 1,7 /etc/passwd
  • Bchop -c 1,7 /etc/passwd
  • Ccolrm 1,7 /etc/passwd
  • Dcut -d: -f1,7 /etc/passwd

How the community answered

(37 responses)
  • A
    16% (6)
  • B
    3% (1)
  • C
    8% (3)
  • D
    73% (27)

Explanation

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

Topics

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

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice