Q1. - (Topic 3)
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)
A. source /usr/local/bin/runme.sh
B. . /usr/local/bin/runme.sh
C. /bin/bash /usr/local/bin/runme.sh
D. /usr/local/bin/runme.sh
E. run /usr/local/bin/runme.sh
Answer: A,B
Q2. - (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
Q3. - (Topic 3)
Which of the following commands moves and resumes in the background the last stopped shell job?
A. run
B. bg
C. fg
D. back
Answer: B
Q4. 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
Q5. - (Topic 3)
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
A. cat < myapp | cat > file1.log
B. myapp 0>&1 | cat > file1.log
C. myapp | cat > file1.log
D. myapp | tee file1.log
E. tee myapp file1.log
Answer: D
Q6. - (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
Q7. - (Topic 3)
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
A. sed '/bob/Bob' letter > newletter
B. sed s/bob/Bob/ letter < newletter
C. sed 's/bob/Bob' letter > newletter
D. sed 's/bob/Bob/g' letter > newletter
E. sed 's/bob, Bob/' letter > newletter
Answer: D
Q8. - (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
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 3)
In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
A. -dirmax
B. -maxdepth
C. -maxlevels
D. -n
E. -s
Answer: B
Q11. - (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
Q12. - (Topic 3)
In compliance with the FHS, in which of the directories are man pages found?
A. /usr/share/man
B. /opt/man
C. /usr/doc/
D. /var/pkg/man
E. /var/man
Answer: A
Q13. - (Topic 4)
Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?
A. apropos
B. which
C. find
D. query
E. whereis
Answer: C
Q14. - (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
Q15. - (Topic 4)
Which of the following commands can be used to display the inode number of a given file?
A. inode
B. ls
C. ln D. cp
Answer: B
Q16. - (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
Q17. - (Topic 3)
In Bash, inserting 1>&2 after a command redirects
A. standard error to standard input.
B. standard input to standard error.
C. standard output to standard error.
D. standard error to standard output.
E. standard output to standard input.
Answer: C