nerdexam
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)
  • A
    3% (1)
  • B
    82% (31)
  • C
    5% (2)
  • D
    11% (4)

Community Discussion

No community discussion yet for this question.

Full 1Z0-409 Practice