System Fundamentals Flashcards
System admin
root
USed to determine sudo privileges
etc/sudoers
sudoers drop in directory used to organize configurations
etc/sudoers.d
open ssh daemon config file
etc/ssh/ssh_config
Used to disable root logins
etc/ssh/ssh_config
Used to edit suoders file
visuo
provides a lock against simultaneous edits, provides basic sanity checks and checks for parse errors
visudo
Allows a user to execute a command as the superuser or another user using -u
sudo
allows users to run commands with a substitute user and group id
su
what commands used with u will start the shell as a login shell with an environment similar to a real login shell
-l and -login
What options run with sudo will execute an interactive shell if no command is specified
-i -login
Collect report and save system activity info
sar
provided by systat
sar
creates a binary file for each day of the month
sa01
Sar daily summary file format
sar01
systat must be started in order for this command to run and collect data
sar
Duration of sar collection can be changed in which file
etc/cron.d/systat
option for sar to extract records from a file name
-f
option for sar to report memory utilization
-r
option for sar to report cpu utilization
-u
report virtual memory statistics as well as stats on paging and block i/o
vmstatd
Default start prints summary of usage statistics since last reboot
vmstat
can run on an interval with a count or continuously
vmstat
option for vmstat to display a table of memory stats
-s
option for vmstat to report disk stats
-d
Display amount of free and used memory in the system
free
default kb
free
pulled from proc/meminfo file
free
option for free to display in human readbale format
-h
option for free to display in megabytes or gigabytes
-m -g
option for free to display in wide mode
-w
report file system disk space usage
df
reports amount of space available on file system of each file name given as an argument
df
If no argument is given this command reports the available space on all mounted file systems
df
option for df to list pseudo duplicate and inaccessible file systems
-a
Creates a file by converting groups of files and directories into an archive
tar
ends with tar extension followed by compression used
taro
option for tar to create an archive
-c