Q1. - (Topic 2)
Which of the following commands lists all currently installed packages when using RPM package management?
A. yum --query --all
B. yum --list --installed
C. rpm --query --all
D. rpm --list–installed
Answer: C
Q2. CORRECT TEXT - (Topic 4)
Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)
Answer: quotacheck
Q3. - (Topic 3)
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?
A. By using the command :repeat followed by the number and the command.
B. By specifying the number right in front of a command such as 4l or 2yj.
C. By selecting all affected lines using the shift and cursor keys before applying the command.
D. By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.
Answer: B
Q4. - (Topic 4)
Which of the following is the device file name for the second partition on the only SCSI drive?
A. /dev/hda1
B. /dev/sda2
C. /dev/sd0a2
D. /dev/sd1p2
Answer: B
Q5. - (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
Q6. 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
Q7. - (Topic 4)
How many fields are in a syntactically correct line of /etc/fstab?
A. 3
B. 4
C. 5
D. 6
E. 7
Answer: D
Q8. - (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
Q9. - (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
Q10. - (Topic 3)
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
A. file /tmp/myfile.txt
B. echo "Hello" >/tmp/myfile.txt
C. sed -ie "s/1/2/" /tmp/myfile.txt
D. echo -n "Hello" >>/tmp/myfile.txt
E. touch /tmp/myfile.txt
Answer: A