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)- A6% (3)
- B90% (43)
- C2% (1)
- D2% (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.