NOS 120 Study Guide Ch. 10 Flashcards

admin

Textbook solutions

Students also studied

Study guides

Practice questions for this set

In which tệp tin 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

Which of the following will show trương mục 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

Which of the following commands can be used to tát delete a user account?
Select one:
a. deluser
b. rmuser
c. expireuser
d. userdel

Which of the following commands can a user lập cập to tát display the groups that they are a thành viên of?
Select one:
a. groupmod --list
b. groups --list
c. groupls
d. groups

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

Which of the following is the log tệp tin 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

Which of the following will show trương mục 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

Which of the following commands can be used to tát pause a printer named Printer1?
Select one:
a. cupsdisable Printer1
b. cupsreject -p Printer1
c. cupsreject Printer1
d. cupsdisable -c Printer1

Which of the following environment variables can you change the value of to tát mix the mặc định printer on a Linux system? (Choose two.)
Select one or more:
a. LPDEST
b. PRINT
c. PRINTER
d. LPDEFAULT

Which of the following is a special group that provides its members with the ability to tát lập cập the su and sudo commands?
Select one:
a. sys
b. adm
c. sudoers
d. wheel

In which tệp tin 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

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

What is the path to tát where the journald.conf tệp tin 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 commands can a user lập cập to tát display the groups that they are a thành viên of?
Select one:
a. groupmod --list
b. groups --list
c. groupls
d. 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

Which of the following options can be used with the usermod command to tát change the mô tả tìm kiếm of the user trương mục that is stored in the GECOS field?
Select one:
a. -g
b. -c
c. -s
d. -d

Which of the following two commands can be used to tát add custom log tệp tin entries to tát the journald database? (Choose two.)
Select one or more:
a. systemd-make
b. logger
c. mklog
d. systemd-cat
e. logentry

Which of the following commands can you use to tát view events within the journald database?
Select one:
a. journal --display
b. journald --list
c. journalctl
d. viewlogs --journald

Which of the following commands can you use to tát send a print job to tát 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