Domain 8: Essential System Services

question

Which of the following lines in the /etc/cups/cupsd.conf file will configure CUPS to listen for print jobs sent only from the local system?
answer

Listen localhost:631
question

Which lpr option should you use to change the page width of the print job?
answer

-w
question

Which of the following logs is also known as the kernel ring buffer?
answer

/ver/log/dmesg
question

Which tail option should you use to continually update the /var/log/messages lot at the shell?
answer

tail -f /var/log/messages
question

Recently, you updated the /etc/aliases file with several email aliases. Which command should you use to update /etc/aliases.db file?
answer

newaliases
question

You want to customize logging on your system. Which file would you configure to customize the logging?
answer

/etc/syslog.conf
question

Your Linux system uses the Line Printer Daemon (LPD) to manage print jobs. Which file should you use to edit the LDP configuration?
answer

/etc/lpd.perms
question

You are managing system time on your linux computer, and you need to change the settings to point to a local NTP server IP address. Which file should you edit?
answer

/etc/ntp.conf
question

What does the lprm command do?
answer

Removes jobs from the line printer queue.
question

You are logged in as gshant, and you want to forward your mail to the dwant user on the local network. Which file should you edit to redirect the mail for a gshant user?
answer

~/.forward
question

Which of the following directories contains email for each user account on the system?
answer

/var/spool/mail
question

You want to increase the security of the local Linux log files and send all of them to a remote server. The server IP address of 192.168.10.1 . Which of the following lines should tou add to the /etc/syslog.conf file on the local system.
answer

*.* @192.168.10.1
question

You want to review all failed login attempts on the system in the /var/log/btmp binary file. Which of the following commands should you use?
answer

lastb
question

You have installed and configured a new printer manually. You cannot print to the new printer. What should you do? (select three)
answer

Use the command /etc/rc.d/init.d/lpd restart to restart the lpd print service. Use the command service cups restart to restart the cups print service. use the command /etc/rc.d/init.d/cups restart to restart the cups print service.
question

What must a cracker do to hide or cover up their intrusion into you system?
answer

Edit the log files /var/log/messages and /var/log/secure.
question

Which file should you edit to configure a server to receive log file messages from a remote client?
answer

/etc/sysconfig/syslog
question

You want to configure your CUPS from a Web browser. What URL address and port should you enter within the web browser’s address field?
answer

http://127.0.0.1:631
question

What information about print jobs does the utility lpq display?
answer

The username of the person who submitted the job. A numerical job ID that can by used to manipulate the job from other utilities.
question

Which command should you use to print 23 copies of the comparables file on the homeprint printer?
answer

lpr -P homeprint -#23 comparables
question

You have a large TCP/IP network and want to keep hosts’ real time clocks synchronized. What protocol should you use?
answer

NTP
question

Which of the following represent a cluster of NTP time provides?
answer

pool.ntp.org
question

You want to implement remote logfile storage. This means you want one or more of your Linux systems to send all system messages to a remote server. Which description is the most correct?
answer

Edit the local /etc/syslog.conf file to point to a remote host for logging and set the -r flag when starting the logging daemon syslogd on the remote system.
question

You have found that the error logs are taking up considerable disk space and want to delete older entries within them. Which utility would you use?
answer

logrotate
question

Which directory holds most of the system log files?
answer

/var/log
question

You suspect your system has been compromised by a user through a remote login. Which file is most likely to have information related to and intrusion?
answer

/var/log/secure
question

You have several messages in the sendmail queue. Which command should you use to deliver the messages?
answer

sendmail -q
question

Which of the following commands will set the system time to match the time server on the network ate 192.168.1.10?
answer

netdate 192.168.1.10
question

Which file should you use to configure the hardware clock to use UTC automatically?
answer

/etc/sysconfig/clock
question

Which of the following commands manage the NTP daemon from the command line?
answer

ntpd
question

You open the /etc/syslog.conf file and see the following entry: cron.* /var/log/cron Which of the following statements best describe the meaning of the entry? (select 2)
answer

All flagged messages are sent to the /var/log/cron log. Syslog flags all messages fromt he cron scheduler.
question

Which command should you use to create the CUPS root user and password?
answer

lppasswd
question

Which command should you use to start the sendmail daemon?
answer

sendmail -bd
question

You want to change what information gets recorded in the system logs. Which file would you edit to specify what you want to log?
answer

/etc/syslog.conf
question

What file configures the logrotate utility?
answer

/etc/logrotate.conf
question

Which command will display the contents of a sendmail mail queue? (select 2)
answer

mailq sendmail -bp
question

Which of the following commands will remove all files from the print queue?
answer

lpc clean
question

Which file contains mail for the gshant user account?
answer

/var/spool/mail/gshant
question

You want to configure the NTP daemon to receive time from pool.ntp.org . What entry should you place in the /etc/ntp.conf file?
answer

server pool.ntp.org
question

A linux system can determine the time and date in which of the following way? (select 2)
answer

It can use NTP to set time. It can set the system clock tot he local time.
question

User badams sends two print jobs to the Marketing printer (the default printer). He notices the printer is stalled on the first document, and uses the lprm – command. What will be the result?
answer

Both of his jobs will be deleted
question

Which o the following commands should you use to implement changes in the /etc/ntp.conf file?
answer

service ntpd start
question

You need to install an e-mail server. Which of the following applications are valid Linux e-mail applications? (select 2)
answer

Postfix Sendmail
question

You want to send the yearend.txt file to the acctg printer. Which command would you use?
answer

lpr -P acctg yearend.txt
question

Which of the following files stores the aliasing information for sendmail?
answer

/etc/aliases.db
question

Which command will show the contents of all the print queues on your Linux system?
answer

lpq -a
question

Which of the following commands removes print job 11 from the hp7 printer?
answer

cancel -P hp7 11
question

By default, which protocol is used by an MTA to send messages to other MTAs?
answer

SMTP
question

Which hwclock option sets the system time to the current hardware clock time?
answer

-s
question

You are using the cupsctl command to configure the /etc/cups/cupsd.conf file. Which cupsctl option will enable the sharing of the locally-connected printer to other computers on the network?
answer

–share-printers
question

You have just installed a new software package, but it doesn’t seem to be working as it should. You check the documentation and find there is no special location for the application messages to be sent. Where should you start looking to see if you can find logged messages for the application?
answer

/var/log/messages
question

Which command will display the contents of a sendmail mail queue?
answer

mailq
question

your system time is over thirty minutes different than the time on the NTP time provider. When you use the ntpd command, the time is not updated. Which ntpd option should you include?
answer

-g
question

Which of the following NTP configuration utilities is deprecated and should be avoided when possible?
answer

ntpdate
question

You want to set the system time with the date command to UTC time. Which date option should you use?
answer

-u
question

Which of the following are common protocols used by MTAs to send messages to MUAs? (select 2)
answer

POP3 IMAP
question

Which of the following MTAs use the QMQP and QMTP protocols?
answer

qmail
question

You are configuring the /etc/cups/cupsd.conf file. Which command should you use to prevent remote printers from being desplayed on the local system?
answer

cupsctl –no-remote-printers
question

one of the steps a cracker does to hide their intrusion is to edit the various log files in /var/log . As a system administrator what can you do to prevent this?
answer

Apply encryption to the log files.
question

Which of the following MTAs are modular? (select two)
answer

postfix qmail
question

You want to configure your CUPS from a Web browser. Which command is correct?
answer

http://localhost:631
question

You need to set the hardware clock to the same value as the system clock. Which command should you use?
answer

hwclock -w
question

You are performing routine troubleshooting on a system and want to change the message severity. Which utility would you use?
answer

logger

Get instant access to
all materials

Become a Member