PrepAway - Latest Free Exam Questions & Answers

Which of the following commands will print a list of usernames (first column) and their corresponding user id

Which of the following commands will print a list of usernames (first column) and their
corresponding user id (uid, third column) from /etc/passwd?

PrepAway - Latest Free Exam Questions & Answers

A.
cut -d: -f1,3 /etc/passwd

B.
chop -c 1,3 /etc/passwd

C.
tac 1-3 /etc/passwd

D.
fmt -u /etc/passwd

Explanation:


Leave a Reply