QuestionQ103

VerifiedUsers and Groups

Which command generates a list of usernames from /etc/passwd together with their login shell?

Explanation

/etc/passwd uses colons as field separators. Its first field is the user name and its seventh field is the login shell, and cut -d: -f1,7 extracts those two fields.

Community Discussion

No comments yet. Be the first to start the discussion!