LPI
101-400 · Question #34
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 C. cut -d : -f 1,4 /etc/passwd. See the full explanation below for the reasoning.
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
- Bsplit -c 1,4 /etc/passwd
- Ccut -d : -f 1,4 /etc/passwd
- Dpaste -f 1,4 /etc/passwd
How the community answered
(20 responses)- A10% (2)
- B5% (1)
- C80% (16)
- D5% (1)
Community Discussion
No community discussion yet for this question.