Essential System Services Flashcards
Location of time zone files
/usr/share/zoneinfo
NTP configuration file
/etc/ntp.conf
ntpd
Daemon for NTP server
date
Print or set the system time and date
System file the system looks at to determine current time zone
/etc/timezone
ntpdate
Set and view the date abd time via NTP
hwclock -w
Set the hardware clock to the current system time
hwclock -s
Set the system time from hardware clock
pool.ntp.org
A virtual cluster of timeservers providing reliable easy to use NTP service
debug priority
Logs most detailed information
emerg priority
Logs most important information
err priority
Log regular errors
alert priority
Log messages classified as alert
logger
Used for manually logging data to the syslogd
logger -i
Returns process ID of logger process
logger -s
Output to standard error
logger -f
Send contents of your logging to log file
logger -p
Specify priority
logger -t
Change name of tag shown in log file
syslogd
logging daemon
klogd
Allows kernel logging to be conducted in standalone fashion or as a client of syslogd
Configuration file for logrotate
/etc/logrotate
What is the file that the “last” command displays?
/var/log/wtmp
~/.forward
Where you put the server name, username, or email address that you would like mail from the account forwarded to
mail -s “Hey man” matt@yahoo.com
Send an email to matt@yahoo.com with subject “Hey man”
mail -f /var/log/matt
check matt’s mail
mail -u matt
check matt’s mail
mailq
shows you all the messages in the mail queue
Location of undelivered remote mail
/var/spool/mqueue
Location of delivered mail for users
/var/spool/mail
4 mail transfer agents
sendmail, exim, postfix, qmail
Location containing configuration files for printers on a system
/etc/cups
lpadmin
Used to configure CUPS
lpr
Legacy program for sending files to the printer queues from the command line
lpr -r
Delete original file after it is printed
lpr -l
Verbose/Long mode
cat /etc/services | lpr - #2
Prints the services file on the default printer 2 times
lpq
Show printer queue status and manages printer queue status.
/etc/printcap
Print queue definitions
lprm
Removes one or more jobs from the printer queue.
lprm -a
Remove all print jobs in the queue
lprm -p
Specify queue name
cupsdisable -c
Cancel all jobs on the named destination
cupsdisable -m
Message
ghostscript
A print filter to convert PostScript data for non-PostScript printers
Location for LPD queue directory
/etc/spool/lpd