Q1. - (Topic 2)
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
A. dd if=/dev/zero of=/dev/sda bs=512
B. dd if=/dev/zero of=/dev/sda bs=512 count=1
C. dd if=/dev/zero of=/dev/sda bs=440 count=1
D. dd if=/dev/zero of=/dev/sda bs=440
Answer: C
Q2. - (Topic 4)
Which of the following commands will change the quota for a specific user?
A. edquota
B. repquota
C. quota -e
D. quota
Answer: A
Q3. CORRECT TEXT - (Topic 2)
Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
Answer: /tmp, tmp, /var/tmp, /tmp/, /var/tmp/
Q4. CORRECT TEXT - (Topic 3)
Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)
Answer: HISTFILE
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 3)
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
A. 9
B. 19
C. 49
D. 99
Answer: B
Q7. - (Topic 1)
Which of the following statements is correct when talking about /proc/?
A. All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.
B. All files within /proc/ are read-only and their contents cannot be changed.
C. All changes to files in /proc/ are immediately recognized by the kernel.
D. All files within /proc/ are only readable by the root user.
Answer: C
Q8. - (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
Q9. - (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
Q10. - (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