exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 57 discussion

Actual exam question from LPI's 101-500
Question #: 57
Topic #: 1
[All 101-500 Questions]

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

  • A. fmt -f 1,4 /etc/passwd
  • B. cut -d : -f 1,4 /etc/passwd
  • C. sort -t : -k 1,4 /etc/passwd
  • D. paste -f 1,4 /etc/passwd
  • E. split -c 1,4 /etc/passwd
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
woonsi
7 months ago
B is the correct answer. i have test in Ubuntu. cut -d : -f 1,4 /etc/passwd
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago