Q1. - (Topic 4)
After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?
A. foo and bar would both be removed.
B. foo would be removed while bar would remain accessible.
C. foo would be removed. bar would still exist but would be unusable.
D. Both foo and bar would remain accessible.
E. The user is prompted whether bar should be removed, too.
Answer: B
Q2. - (Topic 4)
Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?
A. 0017
B. 0640
C. 0038
D. 0027
Answer: D
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 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
Q5. - (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
Q6. - (Topic 1)
Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?
A. /etc/keys
B. /proc/keys
C. /etc/inittab
D. /proc/inittab
E. /etc/reboot
Answer: C
Q7. - (Topic 4)
Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?
A. ext2
B. ext3
C. ext4
D. XFS
E. VFAT
Answer: A
Q8. - (Topic 3)
What is the output of the following command?
echo "Hello World" | tr -d aieou
A. Hello World
B. eoo
C. Hll Wrld
D. eoo Hll Wrld
Answer: C
Q9. CORRECT TEXT - (Topic 2)
Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)
Answer: swapoff, /sbin/swapoff
Q10. - (Topic 4)
Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?
A. dirname
B. which
C. basename
D. query
E. whereis
Answer: E
Q11. - (Topic 1)
Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
A. shutdown -r now
B. shutdown -r "rebooting"
C. telinit 6
D. telinit 0
E. shutdown -k now "rebooting"
Answer: A,C
Q12. - (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
Q13. - (Topic 3)
Which of the following commands is used to change options and positional parameters for a running Bash?
A. history
B. set
C. bashconf
D. setsh
E. envsetup
Answer: B
Q14. - (Topic 3)
Which grep command will print only the lines that do not end with a / in the file foo?
A. grep '/$' foo
B. grep '/#' foo
C. grep -v '/$' foo
D. grep -v '/#' foo
Answer: C
Q15. 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
Q16. - (Topic 1)
What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?
A. /lib/init.so
B. /sbin/init
C. /etc/rc.d/rcinit
D. /proc/sys/kernel/init
E. /boot/init
Answer: B
Q17. - (Topic 4)
Creating a hard link to an ordinary file returns an error. What could be the reason for this?
A. The source file is hidden.
B. The source file is read-only.
C. The source file is a shell script.
D. The source file is already a hard link.
E. The source and the target are on different filesystems.
Answer: E