ITN 170 LINUX SYSTEM ADMINISTRATION FINAL EXAM REVIEW, starting from MOD 8

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which of the following commands can be used to install the latest versions of all packages currently installed on the system from the sources configured in sources.list? apt upgrade apt upgrade all apt update apt-upgrade

apt upgrade

Which of the following commands can you use to search available packages on a DPM software repository? (Choose two.) apt-cache apt-query apt query apt search

apt-cache apt search

Which of the following commands will display a list of the pending jobs to be run? (Choose all that apply.) at -l atq atls at -j

at -l atq

A system administrator wants to schedule a task to run at midnight but knows that they will not be in the office at that time. Which of the following commands can they use to schedule this task to run that night while they are at home? exec -t 00:00 run -t 00:00 at midnight crontab -e 00:00

at midnight

Which of the following command can be used to remove at job 5 from the list of pending jobs? (Choose all that apply.) at -remove %5 atrm 5 at -d %5 at -d 5

atrm 5 at -d 5

Which of the following entries could be added to the rsyslog.conf configuration file to ensure that network login events of warning priority and more serious are logged immediately to the /var/log/logins file? auth.warn -/var/log/logins authpriv.warn -/var/log/logins authpriv.=warning /var/log/logins auth.=warn /var/log/logins

authpriv.warn -/var/log/logins

Which of the following cron table lines would execute the /bin/myscript.sh shell script every Friday at 11:30 PM? a) 11 30 5 ** /bin/myscript.sh b) 30 23 ** 5 /bin/myscript.sh c) 11 30 * 5 * /bin/myscript.sh d) 30 23 * 5 * /bin/myscript.sh

b) 30 23 ** 5 /bin/myscript.sh

Julius would like to ensure that his default printer is different than the system default printer. Which line can he add to his ~/.bash_profile to set his default printer to printer5? (Choose two.) a) export PRINT=printer5 b) export PRINTER=printer5 c) export LPDEFAULT=printer5 d) export LPDEST=printer5

b) export PRINTER=printer5 d) export LPDEST=printer5

Which command can be used to display messages from the MySQL daemon between 10:00 am and 10:15 am today? (Choose all that apply.) a) journalctl --range "10:00-10:15" mysqld.service b) journalctl _COMM=mysqld --since "10:00" --until "10:15" c) journalctl --unit mysqld.service --range "10:00-10:15" d) journalctl --unit mysqld.service --since "10:00" --until "10:15"

b) journalctl _COMM=mysqld --since "10:00" --until "10:15" d) journalctl --unit mysqld.service --since "10:00" --until "10:15"

Which of the following will invalid entries in the GRUB2 configuration cause? a) kernel warning automatically skipping invalid entries b) kernel panic and halt the system c) kernel error with confirmation to skip invalid entries d) no error, automatically skipping invalid entries until a valid entry is found

b) kernel panic and halt the system

Which of the following commands can be used to terminate a process by the process name? (Choose all that apply.) a) kill b) pkill c) stop d) killall

b) pkill d) killall

Which runlevel and target are used to load just enough daemons to perform system maintenance as the root user? (Choose two.) a) runlevel 2 b) runlevel 1 c) rescue.target d) maintenance.target

b) runlevel 1 c) rescue.target

Which of the following commands can be used to configure the Postfix daemon to start in the default runlevel on a Linux system that uses Systemd? a) chkconfig postfix on b) systemctl enable postfix.service c) service postfix start d) systemctl start postfix.service

b) systemctl enable postfix.service

Which of the following commands will set the default runlevel of a Linux system that uses Systemd? a) systemctl --set-default runlevel5.target b) systemctl set-default runlevel5.target c) systemctl --default runlevel5.target d) systemctl set-init runlevel5.target

b) systemctl set-default runlevel5.target

Which of the following commands will shut down a Linux system? (Choose all that apply.) a) init 6 b) telinit 0 c) systemctl isolate poweroff.target d) systemctl isolate runlevel6.target

b) telinit 0 c) systemctl isolate poweroff.target

Which of the following commands can configure the time zone on a Linux system? a) timedatectl set-time b) timedatectl set-timezone c) tzselect d) date --timezone

b) timedatectl set-timezone

Which of the following log files under the /var/log directory contain security-related events? (Choose all that apply.) btmp secure auth.log yum.log

btmp secure auth.log

Which of the following two commands can be used to add custom log file entries to the journald database? (Choose two.) a) logentry b) mklog c) systemd-cat d) logger e) systemd-make

c) systemd-cat d) logger

The Linux kernel stores time in the number of seconds since which date? a) the number of days since January 1, 1900 b) the number of minutes since January 1, 1900 c) the number of seconds since January 1, 1970 d) the number of milliseconds since January 1, 1980

c) the number of seconds since January 1, 1970

Which of the following will show account aging information for a user such as the date of the last password change, when the password expires, and the number of days of warning before the password expires? usermod --expiry jsmith chage -u jsmith chage -l jsmith lsuser jsmith

chage -l jsmith

Which command can be used to configure a daemon to start upon entering a specific runlevel on a Linux system that uses SysV init? systemctl service chkconfig update-rc.d

chkconfig

Which of the following commands can be used to back up files in case of system failure, supports long filenames, and can also back up special files? dd dump cpio tar

cpio

Which of the following commands will show the cron jobs that have been created for the currently logged in user? cronjobs --list cron --list cron -l crontab -l

crontab -l

Which of the following commands can be used to prevent a printer named Printer1 from sending print jobs in the print queue to the printer? cupsreject -p Printer1 cupsdisable -c Printer1 cupsreject Printer1 cupsdisable Printer1

cupsdisable Printer1

Which of the following statements is false regarding commands and shell scripts that are executed within a shell? a) They are executed within a separate subshell by default. b) The shell waits until the command has completed before providing another prompt to the user. c) Background processes provide another shell prompt to the user immediately after execution. d) They are executed within the current shell unless they are run in the background.

d) They are executed within the current shell unless they are run in the background.

Which of the following commands can be used to modify installation configuration options for DPM packages after they have been installed? dpkg-configure dpkg-reconfigure dpkg-update apt-cache

dpkg-reconfigure

You have started a process in the background that you want to now bring to the foreground. The process has PID 3456 and background job ID 5. Which of the following commands can be used to move this process to the foreground? fg %3456 fg %5 bg --fg %3456 bg --fg %5

fg %5

Which of the following commands can be used to remove a group from a Linux system? rmgroup rmg groupdel groups

groupdel

Yasir has been tasked with setting up a new Linux print server in his organization. He has installed CUPS and would like to access the CUPS web administration tool to complete the configuration. What URL should Yasir use within a web browser to access this tool? http://servername http://servername/cups http://servername:631 http://servername/ipp

http://servername:631

Which of the following can be used to write the current system time to the hardware clock in the system BIOS? systohc date --hw2sys date +%s hwclock -w

hwclock -w

Which of the following commands can be used to display the background processes started by the current user? bg jobs fg --bg ps --bg

jobs

What kill command can be used to restart the Systemd or Sys V init daemon? kill -1 1 kill -SIGHUP 0 pkill --restart 0 kill -1 0

kill -1 1

Which of the following commands will send a process's resources to /dev/null to kill the process for process ID 1357? sigkill 1357 killall 1357 kill -15 1357 kill -9 1357

kill -9 1357

Which of the following commands will list missing libraries as not found if a necessary library is not installed? ldd ldconfig ldso ldchk

ldd

Which of the following commands can be used to set the default printer to printer1 for all users on a Linux system? lp -d printer1 lpoptions -d printer1 lpd -d printer1 lpq --set-default printer1

lpoptions -d printer1

Which of the following commands will display the print jobs in the print queue for printer1 only? lpstat -o printer1 lpq -d printer1 lpq -p printer1 lp -j printer1

lpstat -o printer1

Which of the following commands can be used to see files that are currently being used by a specific process ID (PID)? psfiles lsof pstatus pids

lsof

After compiling source code, which command still needs to be run in order to copy the newly compiled binaries into a directory listed in the PATH variable as well as copy supporting files (such as man pages) to the correct location on the filesystem? make install make make image make clean

make install

Which of the following can be used preceding a command to prevent a process from terminating when the parent process terminates? bg runat & nohup

nohup

Which of the following commands will show a list of process names along with their process ID (PID)? (Choose two.) ps proc htop jobs

ps htop

What command is used to display the lineage of a process by tracing its PPIDs until the init daemon? ps -f pstree ps -R ps aux

pstree

Which of the following commands can be used to change the priority of a running process? nice nohup renice psgrep

renice

Which of the following commands will install a package using the Red Hat Package Manager, showing all information, while printing pound signs to show the progress of installation? rpm -iah packagename.rpm rpm -iap packagename.rpm rpm -ivh packagename.rpm rpm -ivp packagename.rpm

rpm -ivh packagename.rpm

After modifying the /etc/default/grub file, what must you do for your changes to be reflected by GRUB on the next boot? run the grub2-install command run the grub2-mkconfig command copy the file to the /boot/grub directory run the dracut command

run the grub2-mkconfig command

Which of the following commands will show the current runlevel along with the previous runlevel? init telinit runlevel echo $RUNLEVEL

runlevel

Which command can be used to start the SSH daemon on a Linux server that uses SysV init? service sshd start systemctl start sshd.service /etc/rc.d/sshd start start sshd

service sshd start

You have downloaded an AppImage file from the Internet. What command can be used to verify the SHA-256 checksum that is listed on the website from which you downloaded the file? checksum --sha256 md5sum --sha256 sha256sum shasum --level 256

sha256sum

Which of the following commands can be used to install sandboxed applications? (Choose all that apply.) appimage apt snap flatpak

snap flatpak

Which command can be used to restart the DHCP daemon on a Linux server that uses Systemd? service restart dhcpd /etc/rc.d/init.d/restart --service dhcpd /etc/rc.d/dhcpd restart systemctl restart dhcpd.service

systemctl restart dhcpd.service

Which of the following options for the tar command will create an archive that is also gzipped while displaying all of the work in progress to the terminal screen? tar -zcvf archive.tar.gz tar -cfza archive.tar.gz tar -czvf archive.tar.gz * tar -nzaf archive.tar.gz

tar -czvf archive.tar.gz *

Which of the following does Systemd use to denote runlevels? service units target units mount units timer units

target units

Which of the following commands can be used to identify rogue processes? (Choose all that apply.) top ps aux ps -ef htop

top htop

Which of the following commands will prompt you to answer a series of questions to help determine which time zone file you should use? zones timezones zoneselect tzselect

tzselect

Which of the following commands can be used to delete a user account? deluser rmuser userdel expireuser

userdel

Which of the following commands can be used to set the number of days until user account jsmith with an expired password is disabled? usermod -f 15 jsmith usermod -d 15 jsmith usermod -x 15 jsmith usermod -e 15 jsmith

usermod -f 15 jsmith

Which of the following is the first field of the /etc/passwd file? UID username GECOS GID

username

Which of the following commands can be used to schedule very frequent recurring tasks, such as running once every minute? at watch do while

watch

Which of the following can be used at the command line to download a source code tarball using the HTTP protocol? (Choose two.) GET wget curl wwwretr

wget curl

Which of the following is a special group that provides its members with the ability to run commands as the root user via the sudo command on Fedora Linux systems? sudoers adm wheel sys

wheel

Which of the following states describe a process that is waiting for a parent process to release its PID? wait suspended zombie dead

zombie

If incompatible X Windows settings are configured, where will the errors that are generated be written to? ~/.xsession-errors ~/.xerror ~/.xwin-error /var/log/xwindows.error

~/.xsession-errors

Which of the following options can be used with the usermod command to change the description of the user account that is stored in the GECOS field? -g -d -c -s

-c

What option can be used with the ps command to display an entire list of processes across all terminals, including daemons? -a -f -e -l

-e

When using the compress command to archive a file, which of the following options will display the compression ratio of the new compressed file? -c -v -s -a

-v

Which of the following file extensions are used by the Debian Package Manager? .dpm .deb .dpkg .d

.deb

Where can you find the boot entries displayed by GRUB at boot time on a Fedora Linux system that uses the BootLoaderSpec module? /boot/grub/grub.cfg /boot/efi/EFI/fedora/grub.cfg /boot/loader/entries/* /boot/grub/entries.conf

/boot/loader/entries/*

The System Log Daemon, rsyslogd, creates a socket for other system processes to write to. What is the path to this socket? /tmp/log /var/log.sock /etc/rsyslog.socket /dev/log

/dev/log

Ruprect needs to add a third-party repository to the Debian Package Manager in order to install the correct driver for a Fibre Channel HBA. The HBA manufacturer has supplied him with a file that contains the necessary repository location. To which directory can Ruprect copy this file to ensure that it will be used the next time he runs an apt update command? /etc/dpm/repolist /etc/apt /etc/dpm /etc/apt/sources.list.d

/etc/apt/sources.list.d

A system administrator wants to allow most users to be able to run cron jobs, but wants to specifically prevent a couple of users from doing so. Which of the following files could the administrator edit to disallow these users from creating cron jobs? /etc/cron.deny /etc/cron.d/cron.deny /etc/cron.allow /etc/cron.d/cron.allow

/etc/cron.deny

In which directory would a system administrator store scripts that should be run monthly by the cron daemon? /var/cron/monthly /etc/crontab/monthly /var/crontab/monthly /etc/cron.monthly

/etc/cron.monthly

Teresa is troubleshooting a printing issue on a Linux workstation and wishes to view the file contents of the print queue to ensure that they match what is shown using the lpstat command. In which directory should Teresa look? /var/cups/jobs /tmp/printers/cups/jobs /etc/cups/jobs /var/spool/cups

/etc/cups/jobs

Which of the following files is used to set the default runlevel on Linux systems that use SysV init? /etc/inittab /etc/init.d/init /etc/rc.d/init.conf /etc/rc.d/init.d/init.conf

/etc/inittab

Which of the following files contains the list of shared libraries? /etc/ld.so.conf /etc/ld.so.cache /lib/shared.conf /lib/ld.so.conf

/etc/ld.so.cache

Which of the following files is a binary file that contains the rules for calculating the time based on your time zone relative to epoch time? /usr/local/bin/timecalc /etc/localtime /sbin/tickadj /sbin/timeadj

/etc/localtime

Kisha manages a Linux file server that contains user accounts for all of the users in her organization. She would like to ensure that when new user accounts are created, an introduction.txt file is automatically copied to their home directory. In which of the following directories can Kisha place the introduction.txt such that it will be copied to new user home directories? /etc/rc.d /etc/skel /etc/login.defs.d/template /etc/default/useradd

/etc/skel

You want to limit the size of the journald database, overwriting events as needed. What file must you modify to specify a maximum database size? /etc/systemd/journald.conf /etc/journald/journald.conf /etc/rsyslogd/journald.conf /etc/rsyslog/journald.conf

/etc/systemd/journald.conf

Which of the following files stores information about failed logins on a Linux system? /var/log/btmp /var/log/wtmp /var/log/nolo /var/log/failed

/var/log/btmp

Which of the following log files contains information and error messages generated by the Linux kernel? /var/log/wtmp /var/log/dmesg /var/log/kern.log /var/log/secure

/var/log/kern.log

Cicero wishes to schedule a shell script called /bin/report.sh at 9:00 PM on the first day of each month on his Linux server. The report.sh script displays a summary of storage usage statistics to stdout. What cron table entry can he create? 0 21 * * * /bin/report.sh >/etc/currentreport.txt 0 9 * * * /bin/report.sh >/etc/currentreport.txt 0 9 * * * /bin/report.sh 0 21 * * * /bin/report.sh

0 21 * * * /bin/report.sh >/etc/currentreport.txt

Which of the following nice values will result in the lowest priority for a process? -20 19 10 0

19

What character under the TTY column in the output of the ps command likely indicates that the process is a daemon process? D d ? N

?

You have run the top command successfully, but realize that the q key on the keyboard has suddenly stopped working. What is another way that you can exit out of the top program? Ctrl+c Ctrl+q Ctrl+w Ctrl+x

Ctrl+c

If a process is currently in an uninterruptible sleep state, which letter will show in the output of the ps command? S U N D

D

Which protocol does CUPS use to share printers to client computers on the network by default? SMB IPP LPD LPR

IPP

Which kill signal terminates a process by taking the process information in memory and saving it to a file called core on the hard disk in the current working directory? SIGINT SIGKILL SIGQUIT SIGTERM

SIGQUIT

Meredith is a software developer that is planning to install Visual Studio Code on her Linux workstation. She regularly adds and removes packages to and from her workstation and wants to ensure that Visual Studio Code always remains stable. In what software format should she obtain Visual Studio Code? Source code Package (DPM or RPM) Sandbox (Flatpak, Snap, or AppImage) Software as a Service (SaaS)

Sandbox (Flatpak, Snap, or AppImage)

What UEFI option allows for a boot loader to be verified using a digital signature? Netboot Secure boot PXE initialization validation

Secure boot

Which of the following accessibility features simulates simultaneous key presses when two keys are pressed in sequence? Bounce keys Repeat Keys Sticky keys Slow keys

Sticky keys

Which of the following is a tiling window manager that can be used with Wayland? i3 LXDE Mutter Sway

Sway

Which of the following system variables can you modify to override the default system timezone within your current shell? TZ TIME LOCALE LC_TZ

TZ

Which of the following is considered a lightweight desktop environment suitable for low memory systems? GNOME XFCE Cinnamon MATE

XFCE

Laverne has recently been assigned to manage a Linux server in her organization that uses the System Log Daemon. She wishes to learn more about where events are logged. In which locations should Laverne look ? (Choose all that apply.) a) /etc/rsyslog.conf b) /etc/syslog.conf c) /etc/rsyslog.d/* d) /etc/rsyslog.rules

a) /etc/rsyslog.conf b) /etc/syslog.conf c) /etc/rsyslog.d/*

Which of the following does Click Assist do? a) Simulates a right click by holding down the left mouse button. b) Simulates a right click by holding down the Ctrl key on the keyboard. c) Simulates a left click by holding down the left shift key or a right click by holding down the right shift key d) Reads the text for buttons on the screen so the user knows what they may be clicking on.

a) Simulates a right click by holding down the left mouse button.

Which of the following will allow the root user to display the contents of the /etc/shadow file? (Choose all that apply.) a) cat /etc/shadow b) getent shadow c) shadowls d) sudocat /etc/shadow

a) cat /etc/shadow b) getent shadow

Uli administers a Linux print server on the network. The printer named printer5 on the print server has experienced a hardware failure and Uli wants to let users immediately know that the printer is unavailable should they attempt to submit a print job. What command should Uli run? a) cupsreject -r "Unavailable. Please submit your job to another printer" printer5 b) cupsdisable -r "Unavailable. Please submit your job to another printer" printer5 c) cupsreject -m "Unavailable. Please submit your job to another printer" printer5 d) cupsdisable -m "Unavailable. Please submit your job to another printer" printer5

a) cupsreject -r "Unavailable. Please submit your job to another printer" printer5

Mufasa has created a Systemd mount unit called /etc/systemd/system/backups.mount that mounts a filesystem UUID to the /backups directory upon entering graphical.target. After rebooting the system and entering graphical.target, he notices that the filesystem is not mounted. What should Mufasa do to remedy the issue? a) enable the mount unit using the systemctl command b) copy the mount unit to the /lib/systemd/system directory c) ensure that the mount unit gives execute permission to the other category d) ensure that the mount unit is owned by the systemd group

a) enable the mount unit using the systemctl command

Which of the following commands can be used to display the current locale of a system? (Choose two.) a) locale b) localectl c) localed d) yslocale

a) locale b) localectl

Which of the following commands can you use to send a print job to printer1? (Choose all that apply.) a) lp -d printer1 mydocument.txt b) lpr -d printer1 mydocument.txt c) lpr -P printer1 mydocument.txt d) lp -p printer1 mydocument.txt

a) lp -d printer1 mydocument.txt c) lpr -P printer1 mydocument.txt

Which of the following commands will display a list of Systemd units sorted by the time they took to load? a) systemd-analyze blame b) systemd --listload c) systemctl --listload d) systemctl-analyze --blame

a) systemd-analyze blame

Emily accidentally created a new user account named bparsons on the wrong server. Which of the following commands could she use to delete the account she created as well as the associated home directory? (Choose all that apply.) a) userdel bparsons ; rm -rf /home/bparsons b) userdel bparsons c) userdel -h bparsons d) userdel -r bparsons

a) userdel bparsons ; rm -rf /home/bparsons d) userdel -r bparsons


Kaugnay na mga set ng pag-aaral

Chapter 5: Creating Effective Business Messages

View Set

Human Life Span & Development Quiz 1

View Set

Periodic Table of Elements (Period 6)

View Set

Chapter 3: Exploring Linux Filesystems

View Set