01. Working in /srv/archive, a directory in which she has no write permission, user dana starts a long job from an interactive terminal:
nohup ./rebuild-index.sh &
She redirects neither standard output nor standard error. Where is the job's output written?
a) /srv/archive/nohup.out
b) $HOME/nohup.out
c) Nowhere, because nohup sends terminal output to /dev/null
d) /var/tmp/nohup.out
02. After removing a web server, an administrator runs dpkg -l | grep nginx and sees:
rc nginx-common 1.22.1-9 all small, powerful, scalable web/proxy server - common files
Which command deletes what is left of this package?
a) dpkg -P nginx-common
b) dpkg -r nginx-common
c) apt-get autoremove
d) apt-get clean
03. Consider the bash command line gen | filter, where both are ordinary programs and the pipefail option is not set.
Which statements about it are true?
(Choose TWO correct answers.)
a) gen and filter run at the same time, and filter reads data as gen writes it
b) Error messages from gen are passed to filter along with its normal output
c) The exit status of the whole line is the exit status of filter
d) filter starts only after gen exits, reading output the shell saved to a temporary file
e) If gen fails, filter is not started and the line returns gen's exit status
04. apt-get install photo-suite pulled in seven library packages as dependencies. Later the administrator ran apt-get remove photo-suite; the seven libraries are still installed, and nothing else depends on them.
Which command removes them?
a) apt-get autoremove
b) apt-get purge photo-suite
c) apt-get autoclean
d) dpkg -r photo-suite
05. For an incident report, you need a listing of every process on the system showing only the PID, owner, CPU percentage and command name, with the heaviest CPU consumer first.
Which command produces it?
a) ps -eo pid,user,%cpu,comm --sort=%cpu
b) ps aux --sort=-%cpu
c) ps -eo pid,user,%cpu,comm --sort=-%cpu
d) ps -o pid,user,%cpu,comm --sort=-%cpu
06. rpm -Va prints this line among its output:
S.5....T. c /etc/ssh/sshd_config
Which statements about this line are true?
(Choose TWO correct answers.)
a) The file's permissions and owner have changed since installation
b) The file has been deleted from the disk
c) The file's size and content digest no longer match the RPM database
d) The package's digital signature failed verification
e) The package marks the file as a configuration file
07. Before installing a downloaded file, monitor_2.3-1_amd64.deb, an administrator wants to list every file path it would place on the system.
Which commands do this without installing anything?
(Choose TWO correct answers.)
a) dpkg -c monitor_2.3-1_amd64.deb
b) dpkg-deb --contents monitor_2.3-1_amd64.deb
c) dpkg -L monitor
d) dpkg -I monitor_2.3-1_amd64.deb
e) dpkg-deb --info monitor_2.3-1_amd64.deb
08. On a server with four CPU cores, uptime prints:
14:22:07 up 31 days, 3:10, 2 users, load average: 7.92, 4.10, 1.05
Which interpretation is correct?
a) Load is rising sharply: the 1-minute average is about double the core count, so tasks are waiting
b) Load is easing: it averaged 7.92 over 15 minutes and has dropped to 1.05 over the last minute
c) The cores were 792% utilized during the last minute, which proves one multithreaded process is running away
d) The figures are 1-, 10- and 15-minute averages, and 4.10 marks a 10-minute spike that has already passed
09. Early in a troubleshooting session on a systemd host, a colleague ran dmesg -C. You now need the kernel messages from the start of the current boot, including the detection of a USB controller.
Which command still shows them?
a) dmesg -T
b) journalctl -k -b -1
c) dmesg -w
d) journalctl -k
10. In vim, you need to replace http: with https: wherever it occurs in the file, including lines where it appears more than once, and you want to approve or reject each replacement individually.
Which command does this?
a) :%s/http:/https:/gc
b) :%s/http:/https:/c
c) :%s/http:/https:/g
d) :s/http:/https:/gc