Which command would you use to save the name of all the users in your system in alphabetical order to a newfile file after removing the duplicate entries?

Which command would you use to save the name of all the users in your system in alphabetical
order to a newfile file after removing the duplicate entries?

Which command would you use to save the name of all the users in your system in alphabetical
order to a newfile file after removing the duplicate entries?

A.
cut -f1 -d: /etc/passwd | sort | uniq | > newfile

B.
cut -f1 -d: /etc/passwd | sort -d | uniq > newfile

C.
cut -f1 -d: /etc/passwd | sort -a | uniq | newfile

D.
cut -f1 -d: < /etc/passwd | sort | uniq | less < newfile

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *