LPI
117-101 · 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. See the full explanation below for the reasoning.
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
(19 responses)- A74% (14)
- B5% (1)
- C16% (3)
- D5% (1)
Community Discussion
No community discussion yet for this question.