Q1. - (Topic 2)
After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?
A. kill -HUP $(pidof grub)
B. grub-install
C. grub
D. No action is required
Answer: D
Q2. 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
Q3. - (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
Q4. - (Topic 3)
What is the default nice level when a process is started using the nice command?
A. -10
B. 10
C. 20 D. 0
Answer: B
Q5. - (Topic 3)
Which of the following commands displays the contents of a gzip compressed tar archive?
A. gzip archive.tgz | tar xvf -
B. tar ztf archive.tgz
C. gzip -d archive.tgz | tar tvf -
D. tar cf archive.tgz
Answer: B
Q6. - (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
Q7. - (Topic 3)
What is the difference between the i and a commands of the vi editor?
A. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
B. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
C. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
D. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
Answer: B
Q8. - (Topic 4)
Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)
A. chmod +s /tmp
B. chmod +t /tmp
C. chmod 1775 /tmp
D. chmod 4775 /tmp
E. chmod 2775 /tmp
Answer: B,C
Q9. - (Topic 3)
When given the following command line.
echo "foo bar" | tee bar | cat
Which of the following output is created?
A. cat
B. foo bar
C. tee bar
D. bar
E. foo
Answer: B
Q10. - (Topic 3)
What command will generate a list of user names from /etc/passwd along with their login shell?
A. column -s : 1,7 /etc/passwd
B. chop -c 1,7 /etc/passwd
C. colrm 1,7 /etc/passwd
D. cut -d: -f1,7 /etc/passwd
Answer: D