Q1. - (Topic 4)
Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)
A. /sbin/mke2fs -j /dev/sdb1
B. /sbin/mkfs -t ext3 /dev/sdb1
C. /sbin/mkfs -c ext3 /dev/sdb1
D. /sbin/mke3fs -j /dev/sdb1
Answer: A,B
Q2. - (Topic 4)
Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO correct answers.)
A. ext3
B. JFS
C. ext2
D. XFS
E. procfs
Answer: A,C
Q3. CORRECT TEXT - (Topic 4)
Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)
Answer: 0077, 077
Q4. - (Topic 2)
Which of the following is correct when talking about mount points?
A. Every existing directory can be used as a mount point.
B. Only empty directories can be used as a mount point.
C. Directories need to have the SetUID flag set to be used as a mount point.
D. Files within a directory are deleted when the directory is used as a mount point.
Answer: A
Q5. - (Topic 4)
After running the command umount /mnt, the following error message is displayed:
umount: /mnt: device is busy.
What is a common reason for this message?
A. The kernel has not finished flushing disk writes to the mounted device.
B. A user has a file open in the /mnt directory.
C. Another file system still contains a symlink to a file inside /mnt.
D. The files in /mnt have been scanned and added to the locate database.
E. The kernel thinks that a process is about to open a file in /mnt for reading.
Answer: B
Q6. - (Topic 1)
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
A. 0
B. 1
C. 3
D. 5
E. 6
Answer: A,E
Topic 2, Linux Installation and Package Management
Q7. - (Topic 4)
Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?
A. File size
B. Modify timestamp
C. Link count
D. Inode number
E. Permissions
Answer: C
Q8. - (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
Q9. - (Topic 4)
Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.)
A. FIND
B. ID
C. LABEL
D. NAME
E. UUID
Answer: C,E
Q10. - (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
Q11. - (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
Q12. - (Topic 3)
Which of the following commands can be used to create a USB storage media from a disk image?
A. gdisk
B. dd
C. cc
D. fdisk
E. mount
Answer: B
Q13. - (Topic 3)
Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)
A. uptime
B. up
C. top
D. uname -u
E. time–up
Answer: A,C
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 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
Q16. - (Topic 1)
Which of the following commands will write a message to the terminals of all logged in users?
A. bcast
B. mesg
C. print
D. wall
E. yell
Answer: D
Q17. - (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