System Fundamentals Flashcards

(97 cards)

1
Q

System admin

A

root

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

USed to determine sudo privileges

A

etc/sudoers

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

sudoers drop in directory used to organize configurations

A

etc/sudoers.d

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

open ssh daemon config file

A

etc/ssh/ssh_config

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

Used to disable root logins

A

etc/ssh/ssh_config

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

Used to edit suoders file

A

visuo

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

provides a lock against simultaneous edits, provides basic sanity checks and checks for parse errors

A

visudo

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

Allows a user to execute a command as the superuser or another user using -u

A

sudo

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

allows users to run commands with a substitute user and group id

A

su

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

what commands used with u will start the shell as a login shell with an environment similar to a real login shell

A

-l and -login

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

What options run with sudo will execute an interactive shell if no command is specified

A

-i -login

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

Collect report and save system activity info

A

sar

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

provided by systat

A

sar

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

creates a binary file for each day of the month

A

sa01

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

Sar daily summary file format

A

sar01

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

systat must be started in order for this command to run and collect data

A

sar

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

Duration of sar collection can be changed in which file

A

etc/cron.d/systat

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

option for sar to extract records from a file name

A

-f

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

option for sar to report memory utilization

A

-r

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

option for sar to report cpu utilization

A

-u

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

report virtual memory statistics as well as stats on paging and block i/o

A

vmstatd

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

Default start prints summary of usage statistics since last reboot

A

vmstat

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

can run on an interval with a count or continuously

A

vmstat

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

option for vmstat to display a table of memory stats

A

-s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
option for vmstat to report disk stats
-d
26
Display amount of free and used memory in the system
free
27
default kb
free
28
pulled from proc/meminfo file
free
29
option for free to display in human readbale format
-h
30
option for free to display in megabytes or gigabytes
-m -g
31
option for free to display in wide mode
-w
32
report file system disk space usage
df
33
reports amount of space available on file system of each file name given as an argument
df
34
If no argument is given this command reports the available space on all mounted file systems
df
35
option for df to list pseudo duplicate and inaccessible file systems
-a
36
Creates a file by converting groups of files and directories into an archive
tar
37
ends with tar extension followed by compression used
taro
38
option for tar to create an archive
-c
39
option for tar to extract an archive
-x
40
option for tar to specify the archive file name
-f
41
option for tar to filter through gzip
-Z
42
option for tar to filter through xz
J
43
option for tar to filter through bzip2
j
44
option for tar to show files processed by the command
v
45
used for copying and synchronizing files and directories both remotely and locally
rsync
46
option for rsync that uses archive mode which perserves permissions and ownership
-apti
47
on for rsync which uses verbose output
-v
48
option for rsync that compresses files during transfer
z
49
option for rsync that performs a backup during data synchronization
-b
50
option for rsync that performs a dry run
n
51
option for rsync that copies data recursively and does not keep ownership
r
52
option for rsync that skips files that are newer on the destination
u
53
an open source web server
apache http
54
provides content through the hypertext transfer protocol
apache http
55
apache http document root folder
vat/www/html
56
ports for http
443 80
57
An open source mail server from IBM
postflix
58
USes simple mail transfer protocol
postflix
59
postflix folder
var/log/maillog or mail.log
60
ports for postflix
25 465 587
61
how to enable and start a service?
systemctl enable -now
62
Synchronize the system clock on a linux system with a centralized ntp server
NTP
63
NTP ports
123/udp
64
More versatile then NTP
chrony
65
used to synchronize the sytem clock on a linux system but can be a server or a peer
chrony
66
log file categories
system service application event
67
Debian system log
var/log/syslog
68
Red Hat system logs
var/log/messages
69
A logging system developed by system
systemd journal
70
Stores data in binary format and can be viewed using journalctl utility
systemd journal
71
Option for systemd journal to view messages for a particular systemd unit
-u
72
Option for systemd journal to follow the journal for the latest messages
-F
73
Option for system d journal to jump to the end of the journal
-E
74
Option fo rsystemd journal to add explanatory texts
-X
75
Options for systemd journal to show entries froma specific data to another date
-s - u since until
76
A utility that can be installed and is by default often to manage logs
log rotate
77
make sure log files dont become too large and it dictates how they will be stored on a host
log rotate
78
main config file for log rotate
/etc/cron.daily
79
Provides a dynamically managed firewall that can support groups of rules called zones
firewalld
80
The command line client for firewalld
firewall-cmd
81
Predefined firewalld zones
public home drop block external internac dmz work trusted
82
This file tells you who can ssh into linux system
ssh_config
83
This keyword can be followed by usernames separated by spaces and login will only be allowed for them
allowusers
84
login is allowed for users whose primary or supplementary group is listed here
allowgroups
85
The initialization state that determines which system services should be running on a sys init system
runlevels
86
used to link a group of units together and describe a desired system state on a systemd system
target
87
Run level 0
poweroff target
88
Run level 1
rescue target (minimal environment with only essential services)
89
Run level 2,3,4
multi user target (normal system state)
90
Run level 5
graphical target includes gui
91
run level 6
reboot
92
systemctl list -units -t target
view active and loaded targets
93
systemctl get-default
returns the default target
94
systemctl isolate
start the unit specified on the command line and its dependencies and stop all others
95
An implementation of a flexible mandatory access control architecture in the linux OS that incorporates a set of kernel modifications and user space tools (it provides an extra layer of security by controlling and limiting what programs and uses can do) it works by assigning security labels to files processes, and other system objects and then defining rules to govern their interactions
selinux
96
Modes of SELinux Operation
Enforcing Permissive (logs policy violations but doesnt block them) Disabled
97
Security contexts for selinux
user role type range or level