NOS 120 CHAPTER 10 QUESTIONS
AND ANSWERS
Which files store 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 - ANSWER /var/log/btmp
The log file where the Debian Package Manager writes entries for
actions taken and packages installed is which of the following?
Select one:
a. packages.log
b. dpackage.log
c. dpkg.log
d. dpm.log - ANSWER dpkg.log
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 - ANSWER 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 - ANSWER cupsdisable Printer1
, 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 - ANSWER PRINTER
LPDEST
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 - ANSWER wheel
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 - ANSWER /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 - ANSWER lpstat -o printer1
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 - ANSWER /etc/systemd/journald.conf
AND ANSWERS
Which files store 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 - ANSWER /var/log/btmp
The log file where the Debian Package Manager writes entries for
actions taken and packages installed is which of the following?
Select one:
a. packages.log
b. dpackage.log
c. dpkg.log
d. dpm.log - ANSWER dpkg.log
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 - ANSWER 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 - ANSWER cupsdisable Printer1
, 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 - ANSWER PRINTER
LPDEST
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 - ANSWER wheel
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 - ANSWER /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 - ANSWER lpstat -o printer1
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 - ANSWER /etc/systemd/journald.conf