Q1. - (Topic 3)
Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?
A. SIGTERM
B. SIGINT
C. SIGSTOP
D. SIGKILL
Answer: B
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 4)
What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?
A. The command is SetUID and it will be executed with the effective rights of the owner.
B. The command will be executed with the effective rights of the group instead of the owner.
C. The execute flag is not set for the owner. Therefore the SetUID flag is ignored.
D. The command will be executed with the effective rights of the owner and group.
Answer: C
Q4. - (Topic 4)
What is the purpose of the Filesystem Hierarchy Standard?
A. It is a security model used to ensure files are organized according to their permissions and accessibility.
B. It provides unified tools to create, maintain and manage multiple filesystems in a common way.
C. It defines a common internal structure of inodes for all compliant filesystems.
D. It is a distribution neutral description of locations of files and directories.
Answer: D
Q5. - (Topic 3)
What is the effect of the egrep command when the -v option is used?
A. It enables color to highlight matching parts.
B. It only outputs non-matching lines.
C. It shows the command's version information.
D. It changes the output order showing the last matching line first.
Answer: B
Q6. - (Topic 3)
Which shell command is used to continue background execution of a suspended command?
A. &
B. bg
C. cont
D. exec
E. :&
Answer: B
Q7. - (Topic 1)
What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
A. Device IRQ settings
B. PCI bus speed
C. System battery type
D. Device vendor identification
E. Ethernet MAC address
Answer: A,B,D
Q8. - (Topic 3)
What happens after issuing the command vi without any additional parameters?
A. vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited.
B. vi starts and requires the user to explicitly either create a new or load an existing file.
C. vi exits with an error message as it cannot be invoked without a file name to operate on.
D. vi starts in command mode and opens a new empty file.
E. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.
Answer: D
Q9. CORRECT TEXT - (Topic 1)
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Answer: cmdline, /proc/cmdline
Q10. - (Topic 4)
Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
A. chown dan/staff file.txt
B. chown dan:staff file.txt
C. chown -u dan -g staff file.txt
D. chown dan -g staff file.txt
Answer: B
Q11. - (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
Q12. CORRECT TEXT - (Topic 3)
Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?
killall -s _______ daemon
Answer: HUP, SIGHUP, 1
Q13. - (Topic 3)
Which of the following command sets the Bash variable named TEST with the content FOO?
A. set TEST="FOO"
B. TEST = "FOO"
C. var TEST="FOO"
D. TEST="FOO"
Answer: D
75. - (Topic 3)
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
A. esc ZZ
B. ctrl :w!
C. esc zz
D. esc :wq!
E. ctrl XX
Q14. - (Topic 3)
Which of the following shell redirections will write standard output and standard error output to a file named filename?
A. 2>&1 >filename
B. >filename 2>&1
C. 1>&2>filename
D. >>filename
E. 1&2>filename
Answer: B
Q15. - (Topic 4)
Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?
A. mod2fs
B. fsck
C. tune2fs
D. mke2fs
E. fixe2fs
Answer: C
Q16. - (Topic 3)
What is the default action of the split command on an input file?
A. It will break the file into new files of 1,024 byte pieces each.
B. It will break the file into new files of 1,000 line pieces each.
C. It will break the file into new files of 1,024 kilobyte pieces each.
D. It will break the file into new files that are no more than 5% of the size of the original file.
Answer: B
Q17. - (Topic 2)
Which of the following commands is used to update the list of available packages when using dpkg based package management?
A. apt-get update
B. apt-get upgrade
C. apt-cache update
D. apt-get refresh
E. apt-cache upgrade
Answer: A