LPI
101-400 · 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
(37 responses)- A73% (27)
- B5% (2)
- C8% (3)
- D14% (5)
Community Discussion
No community discussion yet for this question.