LPI
101-500 · Question #486
101-500 Question #486: Real Exam Question with Answer & Explanation
Sign in or unlock 101-500 to reveal the answer and full explanation for question #486. The question stem and answer options stay visible for context.
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
Unlock 101-500 to see the answer
You've previewed enough free 101-500 questions. Unlock 101-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#cut command#/etc/passwd structure#field extraction#text processing