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)- A8% (5)
- B5% (3)
- C14% (9)
- D73% (47)
Community Discussion
No community discussion yet for this question.