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

Posted by: Pdfprep Category: 101-500 Tags: , ,

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 Cf 1,4 /etc/passwd
B . cut Cd : -f 1,4 /etc/passwd
C . sort Ct : -k 1,4 /etc/passwd
D . paste Cf 1,4 /etc/passwd
E . split Cc 1,4 /etc/passwd

Answer: B

Leave a Reply

Your email address will not be published.