Q1. - (Topic 4)
What does the command mount -a do?
A. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.
B. It shows all mounted file systems that have been automatically mounted.
C. It opens an editor with root privileges and loads /etc/fstab for editing.
D. It ensures that all file systems listed with the option auto in /etc/fstab are mounted.
E. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.
Answer: D
Q2. - (Topic 4)
Which of the following file permissions belong to a symbolic link?
A. -rwxrwxrwx
B. +rwxrwxrwx
C. lrwxrwxrwx
D. srwxrwxrwx
Answer: C
Q3. - (Topic 1)
What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)
A. Entries for all possible devices get created on boot even if those devices are not connected.
B. Additional rules for udev can be created by adding them to /etc/udev/rules.d/.
C. When using udev, it is not possible to create block or character devices in /dev/ using mknod.
D. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.
E. The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.
Answer: B,D
Q4. - (Topic 3)
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
A. -10
B. 0
C. 10
D. 20
Answer: C
Q5. - (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
Q6. - (Topic 1)
Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)
A. startd
B. systemd
C. Upstart
D. SysInit
E. SysV init
Answer: B,C,E
Q7. - (Topic 3)
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
A. cat < myapp | cat > file1.log
B. myapp 0>&1 | cat > file1.log
C. myapp | cat > file1.log
D. myapp | tee file1.log
E. tee myapp file1.log
Answer: D
Q8. - (Topic 3)
What is the purpose of the Bash built-in export command?
A. It allows disks to be mounted remotely.
B. It runs a command as a process in a subshell.
C. It makes the command history available to subshells.
D. It sets up environment variables for applications.
E. It shares NFS partitions for use by other systems on the network.
Answer: D
Q9. - (Topic 3)
What does the ? symbol within regular expressions represent?
A. Match the preceding qualifier one or more times.
B. Match the preceding qualifier zero or more times.
C. Match the preceding qualifier zero or one times.
D. Match a literal ? character.
Answer: C
Q10. - (Topic 2)
Which of the following environment variables overrides or extends the list of directories holding shared libraries?
A. LD_LOAD_PATH
B. LD_LIB_PATH
C. LD_LIBRARY_PATH
D. LD_SHARE_PATH
E. LD_RUN_PATH
Answer: C