nerdexam
Novell

050-720 · Question #49

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux- based network. John is working as a root user on the Linux operating system. He has stored all user names in…

The correct answer is D. grep "!~ 'D'" users.txt. See the full explanation below for the reasoning.

Question

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux- based network. John is working as a root user on the Linux operating system. He has stored all user names in the file named users.txt. Now, he wants to search for such user names that does not contain D. Which of the following commands will john use to accomplish his task?

Options

  • Agrep "~ '^ *D'" users.txt
  • Bgrep "!~ '^D' or ~ '^[^D]'" users.txt
  • Cgrep "~ '^ ?D'" users.txt
  • Dgrep "!~ 'D'" users.txt

How the community answered

(64 responses)
  • A
    8% (5)
  • B
    5% (3)
  • C
    14% (9)
  • D
    73% (47)

Community Discussion

No community discussion yet for this question.

Full 050-720 Practice