LPI
101-350 · Question #60
101-350 Question #60: Real Exam Question with Answer & Explanation
The correct answer is A. cut -d: -f1,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: -f1,3 /etc/passwd
- Bchop -c 1,3 /etc/passwd
- Ctac 1-3 /etc/passwd
- Dfmt -u /etc/passwd
Community Discussion
No community discussion yet for this question.