NOS 120 Study Guide Ch. 10
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? Select one: a. -g b. -c c. -s d. -d
-c
What is the path to where the journald.conf file is located? Select one: a. /etc/systemd/journald.conf b. /etc/journald/journald.conf c. /etc/rsyslog/journald.conf d. /etc/rsyslogd/journald.conf
/etc/systemd/journald.conf
Which of the following files stores information about failed logins on a Linux system? Select one: a. /var/log/nolo b. /var/log/failed c. /var/log/wtmp d. /var/log/btmp
/var/log/btmp
Which of the following environment variables can you change the value of to set the default printer on a Linux system? (Choose two.) Select one or more: a. LPDEST b. PRINT c. PRINTER d. LPDEFAULT
PRINTER LPDEST
Which of the following will display the contents of the /etc/shadow file? (Choose all that apply.) Select one or more: a. getent /etc/shadow b. read /etc/shadow c. show /etc/shadow d. cat /etc/shadow
cat /etc/shadow getent /etc/shadow
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? Select one: a. usermod --expiry jsmith b. chage -u jsmith c. lsuser jsmith d. chage -l jsmith
chage -l jsmith
Which of the following commands can be used to pause a printer named Printer1? Select one: a. cupsdisable Printer1 b. cupsreject -p Printer1 c. cupsreject Printer1 d. cupsdisable -c Printer1
cupsdisable Printer1
Which of the following commands can be used to remove a group from a Linux system? (Choose all that apply.) Select one or more: a. groupdel b. rmgroup c. rmg d. delgroup
delgroup groupdel
Emily accidentally created a new user account on the wrong server. Which of the following commands could she use to delete the account she created? (Choose all that apply.) Select one or more: a. usermod -d b. userdel c. usermod -r d. deluser
deluser userdel
Which of the following is the log file where Dandified YUM writes its log entries? Select one: a. dnf.log b. dyum.log c. dnf.rpm.log d. yumd.log
dnf.rpm.log
Which of the following commands can a user run to display the groups that they are a member of? Select one: a. groupmod --list b. groups --list c. groupls d. groups
groups
Which of the following log files contains information and error messages generated by the Linux kernel? Select one: a. wtmp b. secure c. dmesg d. kern.log
kern.log
Which of the following commands will display the print jobs in the print queue for printer1 only? Select one: a. lpq -p printer1 b. lp -j printer1 c. lpstat -o printer1 d. lpq -d printer1
lpstat -o printer1
Which of the following commands can be used to delete a user account? Select one: a. deluser b. rmuser c. expireuser d. userdel
userdel
Which of the following is the first field of the /etc/passwd file? Select one: a. username b. GID c. GECOS d. UID
username
The System Log Daemon, rsyslogd, creates a socket for other system processes to write to. What is the path to this socket? Select one: a. /etc/rsyslog.socket b. /var/log.sock c. /tmp/log d. /dev/log
/dev/log
In which file can you configure rules for logging on a Linux system? Select one: a. /etc/syslog.rules b. /etc/syslog.rules.conf c. /etc/syslogd.conf d. /etc/rsyslog.conf
/etc/rsyslog.conf
In which of the following directories can you place files that will be copied to new user directories when new users are created? Select one: a. /usr/local/useradd b. /etc/skel c. /usr/local/template d. /etc/rc.d
/etc/skel
Which of the following entries could be added to the rsyslog.conf configuration file to have all syslog messages displayed to console 10? Select one: a. rsyslog tty10 b. *.* /dev/tty10 c. /var/log/* tty10 d. all /dev/tty10
b. *.* /dev/tty10
Which of the following is the log file where the Debian Package Manager writes entries for actions taken and packages installed? Select one: a. packages.log b. dpackage.log c. dpkg.log d. dpm.log
dpkg.log
Which of the following commands can you use to view events within the journald database? Select one: a. journal --display b. journald --list c. journalctl d. viewlogs --journald
journalctl
Which of the following commands can be used to set the default printer for all users on a Linux system where printer1 is the name of the printer? Select one: a. lpoptions -d printer1 b. lp -d printer1 c. lpd -d printer1 d. lpq --set-default printer1
lpoptions -d printer1
Which of the following commands can you use to send a print job to printer1? (Choose all that apply.) Select one or more: a. lp -d printer1 mydocument.txt b. lp -p printer1 mydocument.txt c. lpr -d printer1 mydocument.txt d. lpr -P printer1 mydocument.txt
lpr -P printer1 mydocument.txt lp -d printer1 mydocument.txt
Which of the following two commands can be used to add custom log file entries to the journald database? (Choose two.) Select one or more: a. systemd-make b. logger c. mklog d. systemd-cat e. logentry
systemd-cat logger
Which of the following commands can be used to set the number of days until user account jsmith with an expired password is disabled? Select one: a. usermod -f 15 jsmith b. usermod -e 15 jsmith c. usermod -x 15 jsmith d. usermod -d 15 jsmith
usermod -f 15 jsmith
Which of the following is a special group that provides its members with the ability to run the su and sudo commands? Select one: a. sys b. adm c. sudoers d. wheel
wheel