Oracle
1Z0-409 · Question #176
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?
The correct answer is B. cut -f1 -d: /etc/passwd | sort -d | uniq > newfile. See the full explanation below for the reasoning.
Question
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?
Options
- Acut -f1 -d: /etc/passwd | sort | uniq | > newfile
- Bcut -f1 -d: /etc/passwd | sort -d | uniq > newfile
- Ccut -f1 -d: /etc/passwd | sort -a | uniq | newfile
- Dcut -f1 -d: < /etc/passwd | sort | uniq | less < newfile
How the community answered
(38 responses)- A3% (1)
- B82% (31)
- C5% (2)
- D11% (4)
Community Discussion
No community discussion yet for this question.