Unit 10 Quiz Linux

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which of the following commands can be used to pause a printer named Printer1? cupsreject -p Printer1 cupsdisable -c Printer1 cupsreject Printer1 cupsdisable Printer1

cupsdisable Printer1

Which of the following entries could be added to the rsyslog.conf configuration file to have all syslog messages displayed to console 10? /var/log/* tty10 rsyslog tty10 *.* /dev/tty10 all /dev/tty10

*.* /dev/tty10

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 is the path to where the journald.conf file is located? /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 environment variables can you change the value of to set the default printer on a Linux system? (Choose two.) PRINT PRINTER LPDEFAULT LPDEST

PRINTER LPDEST

Which of the following will display the contents of the /etc/shadow file? (Choose all that apply.) cat /etc/shadow getent /etc/shadow show /etc/shadow read /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? usermod --expiry jsmith chage -u jsmith chage -l jsmith lsuser jsmith

chage -l jsmith

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.) deluser usermod -r userdel usermod -d

deluser userdel

Which of the following is the log file where Dandified YUM writes its log entries? dnf.log dyum.log dnf.rpm.log yumd.log

dnf.rpm.log

Which of the following is the log file where the Debian Package Manager writes entries for actions taken and packages installed? dpm.log dpkg.log dpackage.log packages.log

dpkg.log

Which of the following commands can be used to remove a group from a Linux system? (Choose all that apply.) rmgroup rmg groupdel delgroup

groupdel delgroup

Which of the following commands can a user run to display the groups that they are a member of? groupmod --list groups --list groups groupls

groups

Which of the following commands can you use to view events within the journald database? journald --list journalctl journal --display viewlogs --journald

journalctl

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

kern.log

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

systemd-cat logger

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

userdel

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

username

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

In which file can you configure rules for logging on a Linux system? /etc/rsyslog.conf /etc/syslog.rules /etc/syslog.rules.conf /etc/syslogd.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? /etc/rc.d /etc/skel /usr/local/template /usr/local/useradd

/etc/skel

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

lp -d printer1 mydocument.txt lpr -P printer1 mydocument.txt

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? 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 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 a special group that provides its members with the ability to run the su and sudo commands? sudoers adm wheel sys

wheel


Ensembles d'études connexes

Chapter 43: Nursing Assessment: Neurologic Function

View Set

LEWIS Chapter 48: Diabetes Mellitus

View Set

Radiographic Positioning of the Hand and Wrist

View Set

Life, Health and Accident Questions for PSI Exams

View Set