Q1. - (Topic 4)
Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
A. chmod u=rwx,go=rx /bin/foo
B. chmod o+rwx,a+rx /bin/foo
C. chmod 577 /bin/foo
D. chmod 775 /bin/foo
Answer: A
Q2. - (Topic 2)
When removing a package, which of the following dpkg options will completely remove the files including configuration files?
A. --clean
B. --delete
C. --purge
D. –remove
Answer: C
Q3. - (Topic 3)
Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
A. kill -PIPE 123
B. kill -KILL 123
C. kill -STOP 123
D. kill -TERM 123
Answer: D
Q4. CORRECT TEXT - (Topic 2)
Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)
Answer: update, upgrade
Q5. CORRECT TEXT - (Topic 3)
Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)
Answer: mkdir, /usr/bin/mkdir
Q6. - (Topic 3)
Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
A. magic
B. type
C. file
D. pmagic
E. hash
Answer: C
Q7. - (Topic 3)
What command will generate a list of user names from /etc/passwd along with their login shell?
A. column -s : 1,7 /etc/passwd
B. chop -c 1,7 /etc/passwd
C. colrm 1,7 /etc/passwd
D. cut -d: -f1,7 /etc/passwd
Answer: D
Q8. - (Topic 2)
Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?
A. hidemenu
B. splash
C. timeout
D. showmenu
Answer: C
Q9. - (Topic 3)
Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?
A. <<
B. <|
C. !<
D. &<
Answer: A
Q10. - (Topic 3)
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
A. rmdir '~/\dir'
B. rmdir "~/\dir"
C. rmdir ~/'dir'
D. rmdir ~/\dir
E. rmdir ~/\\dir
Answer: E