Font size
WorksheetsLinux module 10 Administrative tasks
Total questions: 28
Worksheet time: 14mins
The process of sending print jobs from the print queue to the printer is called ____.
spooling
queuing
redirecting
printing
You can clear a log file simply by redirecting noting into it.
True
False
When a printer is disabled, ____.
the print queue does not accept jobs and sends a message to the user nothing that the printer is unavailable
the print queue accepts jobs into the print queue and holds them from there until the printer is enabled again
the printer appears as offline when an IP request is sent
the print queue redirects all print jobs sent to it to /dev/null
What is the term used to describe a user providing a username and password to log in to a system?
validation
authorization
login
authentication
What command can you to lock a user account?
lock username
secure username
usermod -L username
useradd -L username
Which command can be used to temporarily alter the primary group associated with a given user?
usermod
chggrp
gpasswd
newgrp
Which command can be used to send a print job to the default printer name Printer1?
lp -d Printer1 file
lp Printer1 file
lp file
lp -m Printer1 file
What is the name of the file that contains a listing of all users on the system and their home directories?
/etc/passwd
/etc/users
/etc/shadow
/etc/password
UIDs and GIDs are unique to the system and, once used, can never be reused.
True
False
What is the name of the utility used to rotate log files?
syslog
jetpack
logrotate
logbackup
You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd.
True
False
When a printer is rejecting requests, ____.
the print queue does not accept jobs and sends a message to the user nothing that the printer is unavailable
the print queue does not accept jobs into the print queue and holds them there until the printer is accepting requests again
the printer appears as offline when an lp request is sent
the print queue redirects all print jobs sent to /dev/null
When refferring to the /etc/rsyslog.conf file, ____ specifies information from a certain area of the system, whereas ____ is the level of importance of that information.
section, priority
service, precedents
process, degree
facility, priority
Most log files on the system are found in which directory?
/etc/logfiles
/etc/log
/var/log
/dev/log
Which following file contains default information such as UID and GID ranges and minimum password length to be used at user creation?
/etc/skel
/etc/passwd
/etc/login.defs
/etc/default/useradd
What command can you use to view journald log entries on a system that uses Systemd?
less
journaldctl
syslog
catlog
Which command would you use to unlock a user account?
unlock username
open username
passwd -u username
useradd -U username
Along with the listing of user accounts, the /etc/passwd file contains information on account expiry.
True
False
You use lpstat and determine that a user named User1 has placed two large print jobs in the queue for Printer1 that have yet to start printing. They have print job IDs of Printer1-17 and Printer1-21, respectively. Which command would you use to remove these two jobs from the print queue?
cancel Printer1-17 Printer1-21
cancel -u Printer1-17 Printer1-21
cancel -a Printer1-17 Printer1-21
cancel 17 21
Which command is used to delete a user account?
usermod -d username
del username
userdel username
rm username
In which of the following directories can you place files that will be copied to new directories when new users are created?
/etc/rc.d
/etc/skel
/usr/local/template
/usr/local/useradd
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
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
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
Which of the following is the first field of the /etc/passwd file?
UID
username
GECOS
GID
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
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
Which of the following commands will display the print jobs in the print queue for print1 only?
lpstat -o printer1
lpq -d printer1
lpq -p printer1
lp -j printer1
