MultipleChoice
The file myfile.txt contains the following data:
joe:x:100:100:Joe:/home/joe:/bin/bash
mike:x:101:101:Mike:/home/mike:/bin/sh
kevin:x:102:102:Kevin:/home/kevin:/bin/sh
matt:x:103:103:Matt:/home/matt:/bin/sh
What output will be displayed on the screen when the following command is executed:
grep -o home myfile.txt
OptionsFillInTheBlank
What file allow admin to adjust number of mounts after which file system will be checked by e2fsck?
MultipleChoice
After a minor security incident you are instructed by your lead sys-admin to verify the RPM's installed on running system. Which command will create a complete report which you can analyze for changes which may be security related?
OptionsMultipleChoice
You want to search the file myfile for all occurances of string containing at least five characters, where character number 2 and 5 are 'a' and character number 3 is NOT 'b'. Which command would you use?
OptionsMultipleChoice
What does the following command do? cat '$TEST'
OptionsMultipleChoice
Which of the following commands would display the lines containing capital letters form the file "turkey.txt"?
OptionsMultipleChoice
You wish to kill a process with a PID of 123. Select the command which will allow the process to "clean up" before exiting.
OptionsMultipleChoice
What does the + symbol mean in the following grep regular expression: grep '^d[aei]\+d$' /usr/share/dict/words
Options