Instructor Flashcards
(181 cards)
/var/log/messages
Where all log messages go (except mail)
TCP Wrappers
- For
inetd
, using only/etc/hosts.allow
and/etc/hosts.deny
as parameters of tcpd -
xinetd
, the librarylibwrap.a
allows those services to use/etc/hosts.allow
and/etc/hosts.deny
ip
- Unified network and routing management command designed to replace the functionality of most of the other commands you need to know for the exam
- For example:
ip addr show
- Will provide you the same information as the generic
ifconfig
command
/etc/group
- Defines group-specific information like mapping of the group name to the group ID, other members of the group, etc.
- Groups can contain multiple users
TZ (variable)
- Allows you to override the system-wide time zone setting in the above directory
- Often set in a user’s home directory as part of the
.bashrc
file
/etc/aliases.db
- Database file that your local MDA will read to determine where to send email
- It has to be updated when any changes are made to the aliases on the system
if [["$?"=="0"]]
- Will determine if the preceding command succeeded or failed
- NOTE: The variable
"$?"
is a special variable that can be tested immediately after any command. If the value is0
, then the command succeeded (did not error), while any other value means the command failed.
usermod
- Modify the characteristics and/or membership of existing users
-
-c [description]
— Modifies the user description in the/etc/passwd
file -
-d [new home directory]
— Changes the user’s home directory -
-e [date]
— Change the date of account expiration -
-f [# days]
— Change the number of days after a password reaches max age the account will still allow login -
-g [GID]
— Change the user’s primary GID -
-G [GID]
— Change the user’s secondary GID(s) (can be multiple groups in a comma-delimited list) -
-s [path and file of login shell]
— Changes the full path and name of the default login shell for the user -
-u [UID]
— Changes the UID (NOTE: Will change home directory to match, but not any other user-owned files) -
-L
— Locks the user’s account -
-U
— Unlocks the user’s account
/etc/resolv.conf
Defines the system DNS servers and domains for name resolution
crontab
- Utility to allow the creation of jobs (specific to user running the command)
-
-l
— List all cron jobs for the logged-in user -
-e
— Edit the cron jobs for the logged-in user -
-u [username]
— Apply the option to the user indicated
dpkg-reconfigure tzdata
(Debian-based systems)
-
list-timezones
— List all the time zones to choose from -
set-timezone
[country/zone] — Set to the indicated time zone - Make the actual changes, setting the
/etc/localtime
system setting to the time zone chosen
tracepath6
IPv6 equivalent to tracepath
What subcommand of Git is used to change Git configurations?
git config
/bin/false
Returns a non-zero code to the request that will block any user request to log in
/etc/motd
If it exists, it displays the contents of this file when someone logs on to the system.
/etc/localtime
The system time zone (can be a full time zone copy OR a link to the configured time zone)
cupdisable
Disables the indicated printer (but will still accept jobs — will just hold in the queue)
~/.ssh/known_hosts
File containing the public key of known/trusted hosts that have connected to/from existing host by the user whose directory it exists in
/etc/skel
The contents of this directory can be copied to a new user’s home directory depending on how the user is added.
timedatectl
(Red Hat-based systems)
-
list-timezones
— List all the time zones to choose from -
set-timezone [country/zone]
— Set to the indicated time zone - Make the actual changes, setting the
/etc/localtime
system setting to the time zone chosen
UDP
User Datagram Protocol
* Often considered “complementary” to IP, but is a “stateless” connection. No error checking or retransmission of packets takes place, even if the transmission of the packet failed.
/etc/cron.deny
- Blacklist of users who cannot run cron jobs
- If this file exists and is empty, all users can access their crontabs and run jobs
- NOTE: Order of precedence will apply
cron.allow
and ignorecron.deny
if it exists
lp
- Command line (legacy) utilities for printing
- For example:
echo "my test print job" | lp
- Would print to the default printer the results of the
echo
command -
-d [printer]
—The destination printer (if not default) -
-n [#]
— Print indicated number of copies
/etc/cron.*
-
cron.d
— Custom job schedule configuration directory (system cron jobs) -
cron.hourly
— Jobs that run hourly -
cron.daily
— Jobs that run daily -
cron.weekly
— Weekly jobs -
cron.monthly
— Monthly jobs - NOTE: In all but
cron.d
, these directories are just scripts with no other scheduling information included in them and they will not always run at the same time, but will run within the specified time “frame.”