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
Which of the following apt-get commands will install the newest versions of all currently installed packages without removing any packages or installing new packages that are not already installed?
A. auto-update
B. upgrade
C. dist-upgrade
D. install
E. update
Which of the following files, located in the user home directory, is used to store the Bash history?
A. .bash_history
B. .bash_histfile
C. .history
D. .bashrc_history
E. .history_bash
Which of the following commands will print the last 10 lines of a text file to the standard output?
A. cat -n 10 filename
B. dump -n 10 filename
C. head -n 10 filename
D. tail -n 10 filename
What happens after issuing the command vi without any additional parameters?
A. vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.
B. vi starts and requires the user to explicitly either create a new or load an existing file.
C. vi exits with an error message as it cannot be invoked without a file name to operate on.
D. vi starts in command mode and opens a new empty file.
E. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.
Which of the following command sets the Bash variable named TEST with the content FOO?
A. set TEST="FOO"
B. TEST = "FOO"
C. var TEST="FOO"
D. TEST="FOO"
What does the command mount -a do?
A. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.
B. It shows all mounted file systems that have been automatically mounted.
C. It opens an editor with root privileges and loads /etc/fstab for editing.
D. It ensuresthat all file systems listed with the option auto in /etc/fstab are mounted.
E. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.
Which of the following examples for Bash file globbing matches a file named root-can-do-this.txt when used in the directory holding that file? (Choose three correct answers.)
A. root*can?do-this.{txt,odt}
B. r[oOoO]t-can-do*.txt
C. {root,user,admin}-can-??-this.txt
D. root*can*do??this.txt
E. root***{can,may}-do-this.[tT][xX][tT]
Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?
A. -a
B. -c
C. --no-clobber
D. --continue
Which daemon handles power management events on a Linux system?
A. acpid
B. batteryd
C. pwrmgntd
D. psd
E. inetd