LPI
101-500 · Question #201
What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?
The correct answer is A. cut -d: -fl,3 /etc/passwd. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
GNU and Unix Commands
Question
What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?
Options
- Acut -d: -fl,3 /etc/passwd
- Bchop -c l,3 /etc/passwd
- Ctac l-3 /etc/passwd
- Dfmt -u /etc/passwd
How the community answered
(30 responses)- A90% (27)
- B7% (2)
- D3% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#cut command#field extraction#/etc/passwd structure#text processing
Community Discussion
No community discussion yet for this question.