LPI
101-400 · Question #119
What command will generate a list of user names from /etc/passwd along with their login shell?
The correct answer is D. cut -d: -f1,7 /etc/passwd. See the full explanation below for the reasoning.
Question
What command will generate a list of user names from /etc/passwd along with their login shell?
Options
- Acolumn -s : 1,7 /etc/passwd
- Bchop -c 1,7 /etc/passwd
- Ccolrm 1,7 /etc/passwd
- Dcut -d: -f1,7 /etc/passwd
How the community answered
(56 responses)- A4% (2)
- B9% (5)
- C4% (2)
- D84% (47)
Community Discussion
No community discussion yet for this question.