Shared Flashcard Set

Details

Unit9-bp (Exam 2)
Linux+ Certification
25
Computer Science
Professional
02/24/2012

Additional Computer Science Flashcards

 


 

Cards

Term
Most log files are stored as text in the ___________ (full path) directory.
Definition
/var/log
Term
What log file shows system boot and daemon startup? (full path)
Definition
/var/log/boot.log
Term
The _______ log (full path) shows the operation or failure of cron jobs.
Definition
/var/log/cron
Term
The _______ log (full path) shows the hardware detection successes and failures.
Definition
/var/log/dmesg
Term
What log file shows email sent by the sendmail daemon? (full path)
Definition
/var/log/maillog
Term
What log file users last logon times?
Definition
/var/log/lastlog
Term
The ______ log (full path) shows daemon startup and system level messages produced AFTER booting.
Definition
/var/log/messages
Term
What log file (full path) shows network access generated by the sshd (secure shell daemon) and xinetd (extended internet daemon)?
Definition
/var/log/secure
Term
What log file (full path) shows XWindows operations and failures?
Definition
/var/log/Xorg.*.conf (* represents a number)
or
/var/log/XFree86
Term
The _________ configuration file (full path) is used to manage the operation of the system log daemon.
Definition
/etc/syslog.conf
or
/etc/rsyslog.conf
Term
True or False: The facility in the /etc/syslog.conf file corresponds to a daemon or kernal and must always match the component exactly.
Definition
False. The facility might not match the name of the component exactly.
Term
In the following entry from the /etc/rsyslog.conf file identify the facility, priority and logfile.

user.crit /var/log/user.log
Definition
facility is user
priority is crit
logfile is user.log
Term
The ______ facility in the /etc/rsyslog.conf (or /etc/syslog.conf) logs activity for the kernel.
Definition
kern
Term
The syslogd service recognizes 8 priority levels and 2 wildcards. Identify them in order from lowest to highest.
Definition
debug, info, notice, warn (warning), err (error), crit, alert, emerg (panic)
* and none are the wildcards
Term
The _______ daemon provides automatic log rotation services.
Definition
logrotate
Term
The logrotate executable is included in the /etc/cron.daily directory to run by the _____ daemon.
Definition
cron
Term
The ________ file (full path) contains defaults for how logrotate should run, but the majority of log rotation configuration files are in the ________ directory (full path).
Definition
/etc/logrotate.conf, /etc/logrotate.d
Term
When scheduling tasks the ____ command works best if the job will run once, and the ____ command is best for jobs which run periodically.
Definition
at, crontab
Term
When using the at command the _______ (full path) is ignored if the /etc/at.allow file is created.
Definition
/etc/at.deny
Term
The output of an at job can be handled in what two ways?
Definition
1. Redirected to a file
2. Email the results to the user
Term
What are the two commands to delete an at job?
Definition
at -d
atrm
Term
Which are correct syntax for the at command?
A. at now + 1 hour
B. at 4:30 -f /home/atstuff
C. at -d
Definition
A,B,C are all correct
Term
True or False: root will lose privileges to use the at command if /etc/at.allow is created and the root account is not included.
Definition
False. root is always permitted to use at.
Term
When is the cron daemon loaded?
A. when the root account is authenticated
B. each time a user logs in
C. when the system is booted
D. each time a BASH or sh shell is opened
Definition
C. the cron daemon is loaded with the system is booted
Term
User level crontabs are stored in the ______ (full path).
Definition
/var/spool/cron/crontabs/[user]
Supporting users have an ad free experience!