You are on page 1of 1

A user needs to work with printers and printer-related items.

Which of the following


commands adds the user (called username in the options) to the appropriate group for
this purpose?
A. usermod -aG printerusers username
B. usermod -aG lpadmin username
C. usermod -gA lpadm username
D. usermod -a lpadm username

Which command can be used to gather and display statistics about mail processed on a
server running sendmail?
A. mailq
B. mailstats
C. statmail
D. sendmailstats

Which of the following commands can be used to restart CUPS on a server running
systemd?
A. systemctl restart cups.service
B. systemctl restart cups
C. systemctl reboot cups.target
D. systemctl restart cups.target

When configuring a server for an SNMP server role, which ports need to be allowed
through the firewall for SNMP traffic?
A. Ports 23 and 25
B. Ports 110 and 143
C. Ports 80 and 443
D. Ports 161 and 162

You need to look at information on logins beyond what was captured by the current
log file for the last command. Which option to the last command can be used to load
information from an alternate file?
A. -a
B. -t
C. -e
D. –f

You need to examine who is currently logged in to the system. Which of the following
commands will display this information?
A. listuser
B. fuser
C. ls -u
D. w

You might also like