LPI
101-500 · 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. 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
- Bsplit -c 1,4 /etc/passwd
- Ccut -d : -f 1,4 /etc/passwd
- Dpaste -f 1,4 /etc/passwd
How the community answered
(45 responses)- A4% (2)
- B2% (1)
- C91% (41)
- D2% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#cut command#field extraction#text processing#passwd file
Community Discussion
No community discussion yet for this question.