Ch10 Quiz
What option should be used in conjunction with the lp command in order to specify the destination printer name? a)-d b)-n c)-l d)-p
a)-d
Where is the skeleton directory located on most Linux systems? a)/etc/skel b)/var/skeleton c)/etc/skeleton d)/var/skel
a)/etc/skel
What is the default print job priority for all print jobs created by the lp command? a)50 b)-50 c)0 d)100
a)50
In order to send a print job to a printer using CUPS, what command must be used? a)lp b)pr c)pimt d)pl
a)lp
CUPS contains versions of the lpr, lpc, lpq, and lprm commands. a)true b)false
a)true
Logs from the cron daemon (crond) can be viewed using the command journalctl _COMM=crond a)true b)false
a)true
When you print to a printer class, the print job is send to the first available printer in the printer class. a)true b)false
a)true
Select the option that can be used with the lpstat command to display a list of printers that are enabled: a)-a b)-p c)-o d)-e
b)-p
On Linux, the root user always has a UID of what number? a)500 b)0 c)1 d)23
b)0
The System Log Daemon uses what TCP and UDP port to accept incoming requests from another System Log Daemon on a remote system? a)1012 b)514 c)827 d)23
b)514
The CUPS Web administration tool can be accessed via web browser by accessing what TCP port below? a)8080 b)631 c)780 d)4586
b)631
On most Linux systems, the logrotate utility is automatically scheduled to run weekly. a)true b)false
b)false
The secure log file contains information regarding the last user to log in to a system. a)true b)false
b)false
What configuration file contains parameters that set the default location for e-mail, password expiration information, minimum password length, and the range of UIDs and GIDs available for use? a)local.setup b)login.defs c)user.defs d)system.conf
b)login.defs
To change the primary group temporarily to another group that is listed in the output of the groups and id commands, you can use which command below? a)groupmod b)newgrp c)newgroup d)groupadd
b)newgrp
What priority used by the System Log Daemon indicates a very serious system condition that would normally be broadcast to all users? a)alert b)panic c)crit d)error
b)panic
What option can be added to the userdel command to remove the home directory of the target user? a)-x b)-d c)-r d)-R
c)-r
What System Log Daemon priority indicates an error that should be rectified immediately, such as a corrupt system database? a)panic b)info c)alert d)debug
c)alert
Which command should be used to restrict access to printers? a)lpr b)lpa c)lpadmin d)admin
c)lpadmin
Adding the -t option to what command below will provide a list of all printers on the system and their status? a)lps b)lpr c)lpstat d)lp
c)lpstat
In order to create user accounts on a Linux system, what command should be utilized? a)adduser b)usercreate c)useradd d)uadd
c)useradd
A user account can be locked with the usermod command using what option? a)-l b)-u c)-U d)-L
d)-L
What option can be used in the journald configuration file to specify a file size limit to the event log? a)Journal_Limit b)SizeLimit c)Max_file_size d)SystemMaxUse
d)SystemMaxUse
A system that uses an /etc/passwd file only can be converted to use /etc/shadow for security by using what command? a)passwdconv b)pwdcv c)passwd d)pwconv
d)pwconv
What log file contains information and error messages regarding network access generated by daemons such as ssd and xinetd? a)messages b)wtmp c)dmesg d)secure
d)secure