PdfPrep.com

Which of the following commands generates a list of user names from /etc/passwdalong with their login shell?

Which of the following commands generates a list of user names from /etc/passwdalong with their login shell?
A . column -s : 1,7 /etc/passwd
B . chop -c 1,7 /etc/passwd
C . colrm 1,7 /etc/passwd
D . sort -t: -k1,7 /etc/passwd
E . cut -d: -f1,7 /etc/passwd

Answer: E

Exit mobile version