108 Essential System Services KT Flashcards

1
Q

108.1 Maintain system time

A

The following is a partial list of the used files, terms and utilities:

/usr/share/zoneinfo/
/etc/timezone
/etc/localtime
/etc/ntp.conf
/etc/chrony.conf
date
hwclock
timedatectl
ntpd
ntpdate
chronyc
pool.ntp.org
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

/usr/share/zoneinfo/

A

The system timezone database directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

/etc/timezone

A

The /etc/timezone file is a plain text file. It usually includes the continent and place, unless a more generic setting is used like UTC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

/etc/localtime

A

The system timezone file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

/etc/ntp.conf

A

The /etc/ntp.conf file is the primary configuration file for the ntpd service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

/etc/chrony.conf

A

This is the location where the chrony.conf file is compiled. chrony.conf is the configuration file for the chronyd daemon.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

date

A

Command: Displays the system clock.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

hwclock

A

Command: hwclock is an administration tool for the time clocks.

hwclock [function] [option…]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

timedatectl

A

Command: Displays the system clock, UTC, and timezone information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

ntpd

A

The Network Time Protocol daemon (ntpd) is a process that ensures the system clock is in sync with the time provided by remote NTP servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

ntpdate

A

Command: ntpdate sets the local date and time by polling the Network Time Protocol (NTP) server(s). Servers are given as arguments to determine the correct time. It must be run as root on the local host.

ntpdate [ -46bBdqsuv ]
[ -a key ] [ -e authdelay] 
[ -k keyfile ] [ -o version ] 
[ -p samples ] [ -t timeout ] 
[ -U user_name] server [ ... ]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

chronyc

A

Command: chronyc is a command-line interface program which can be used to monitor chronyd’s performance and to change various operating parateters whilst it is running.

chrony is a pair of programs for maintaining the accuracy of computer clocks.

chronyc [OPTIONS]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

pool.ntp.org

A

The pool.ntp.org address is a link to a cluster of NTP servers that are geographically spread throughout the world.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

108.2 System logging

A

Terms and Utilities:

/etc/rsyslog.conf
/var/log/
logger
logrotate
/etc/logrotate.conf
/etc/logrotate.d/
journalctl
systemd-cat
/etc/systemd/journald.conf
/var/log/journal/
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

/etc/rsyslog.conf

A

The rsyslog.conf file is the main configuration file for the rsyslogd(8) which logs system messages on *nix systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

/var/log/

A

The /var/log/ directory is the standard location for log files to be placed by the syslogd daemon.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

logger

A

Command: logger makes entries in the system log.

logger [options] [message]

18
Q

logrotate

A

Command: logrotate is designed to ease administration of systems that generate large numbers of log files.

logrotate [–debug] [–verbose] [–log file] [–force] [–state file] [–mail command] config_file [config_file2 …]

19
Q

/etc/logrotate.conf

A

The /etc/logrotate.conf is the primary configuration file for the logrotate command.

20
Q

/etc/logrotate.d/

A

The /etc/logrotate.d/ directory stores application specific log settings.

21
Q

journalctl

A

Command: journalctl may be used to query the contents of the systemd(1) journal as written by systemd-journald.service(8).

journalctl [OPTIONS…] [MATCHES…]

22
Q

systemd-cat

A

Command: systemd-cat may be used to connect the standard input and output of a process to the journal.

systemd-cat [OPTIONS…] [COMMAND] [ARGUMENTS…]

23
Q

/etc/systemd/journald.conf

A

These files configure various parameters of the systemd journal service, systemd-journald.service(8).

24
Q

/var/log/journal/

A

The /var/log/journal/ directory is where systemd stores logs.

25
Q

108.3 Mail Transfer Agent (MTA) basics

A

Terms and Utilities:

~/.forward
sendmail emulation layer commands
newaliases
mail
mailq
postfix
sendmail
exim
26
Q

~/.forward

A

Email forwarding file. If this file exists, smtpd(8) forwards email to the destinations specified therein.

27
Q

sendmail emulation layer commands

A

These are backwards compatible commands that can be used with MTAs other than sendmail.

28
Q

newaliases

A

Command: The newaliases utility makes changes to the mail aliases file visible to smtpd(8).

newaliases [-f file]

29
Q

mail

A

Command: mail is an intelligent mail processing system which has a command syntax reminiscent of ed(1) with lines replaced by messages.

mail -words [-dEIinv ]
[-a header ] [-b bcc-addr ]
[-c cc-addr ] [-s subject ]
to-addr …

30
Q

mailq

A

Command: List the mail queue. Each entry shows the queue file ID, message size, arrival time, sender, and the recipients that still need to be delivered.

mailq

31
Q

postfix

A

Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail.

32
Q

sendmail

A

Sendmail is a general purpose internetwork email routing facility that supports many kinds of mail-transfer and delivery methods.

33
Q

exim

A

Exim is a mail transfer agent (MTA) used on Unix-like operating systems.

34
Q

108.4 Manage printers and printing

A

The following is a partial list of the used files, terms and utilities:

CUPS configuration files, tools and utilities
/etc/cups/
lpd legacy interface (lpr, lprm, lpq)

35
Q

CUPS configuration files

A

The cups-files.conf file configures the files and directories used by the CUPS scheduler, cupsd(8). It is normally located in the /etc/cups directory.

36
Q

CUPS tools

A

The cupsctl(8) program is used to manage the printing system as a whole, including things like debug logging and printer sharing.

37
Q

CUPS utilities

A

The lpadmin(8) program is used to add, modify, or delete destinations, while the lpinfo(8) command is used to list the available printer drivers and backends.

38
Q

/etc/cups/

A

The /etc/cups/ directory holds all of the cups configuration files.

39
Q

lpd legacy interface

A

cups-lpd is the CUPS Line Printer Daemon (“LPD”) mini-server that supports legacy client systems that use the LPD protocol.

40
Q

lpr

A

Command: lpr submits files for printing.

lpr [ -E ] [ -H server[:port] ] [ -U username ]
[ -P destination[/instance] ] [ -# num-copies [ -h ] [ -l ] [ -m ] [ -o option[=value] ] [ -p ] [ -q ] [ -r ] [ -C title ] [ -J title ]
[ -T title ] [ file(s) ]

41
Q

lprm

A

Command: lprm cancels print jobs that have been queued for printing.

lprm [ -E ] [ -U username ] [ -h server[:port] ]
[ -P destination[/instance] ] [ - ] [ job-id(s) ]

42
Q

lpq

A

Command: lpq shows the current print queue status on the named printer.

lpq [ -E ] [ -U username ] [ -h server[:port] ]
[ -P destination[/instance] ] [ -a ] [ -l ] [ +interval ]