brainscape_system_admin_flashcards

(98 cards)

1
Q

Front

A

Back

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

Linux

A

Open‑source OS kernel used by many distributions.

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

Distribution (distro)

A

Packaged Linux + tools; examples: Ubuntu, Debian, Fedora, Arch.

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

Kernel

A

Core that manages CPU, memory, devices, and system calls.

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

GNU userland

A

CLI tools (coreutils, bash, grep, sed, awk) that sit above the kernel.

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

Shell

A

Command interpreter; common: bash, zsh, fish.

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

Terminal

A

Program that emulates a TTY to interact with the shell.

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

Absolute path

A

Path from root / (e.g., /etc/hosts).

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

Relative path

A

Path from current directory (e.g., ../logs).

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

Home directory

A

~ expands to the user’s home.

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

Hidden files

A

Names starting with .; show with ls -a.

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

Package manager (Debian)

A

apt, lower-level dpkg.

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

Package manager (RHEL)

A

dnf/yum, lower-level rpm.

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

Update packages (Debian)

A

sudo apt update && sudo apt upgrade.

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

Install package (Debian)

A

sudo apt install <pkg>.

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

Install package (RHEL)

A

sudo dnf install <pkg>.

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

Filesystems

A

Common: ext4, xfs, btrfs.

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

Inode

A

Metadata record for a file (owner, perms, timestamps, blocks).

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

Hard link

A

Directory entry pointing to same inode; ln.

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

Symbolic link

A

Pointer file to path; ln -s.

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

View disk layout

A

lsblk, blkid, fdisk -l, parted -l.

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

Make filesystem

A

mkfs.ext4 /dev/sdXn etc.

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

Mount filesystem

A

mount /dev/sdXn /mnt.

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

Persistent mounts

A

/etc/fstab entries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Swap
Virtual memory; check with `swapon --show`.
26
LVM basics
`pvcreate`, `vgcreate`, `lvcreate`; mount `/dev//`.
27
Check disk usage
`df -h` (filesystem), `du -sh *` (directory sizes).
28
Permissions bits
r=4,w=2,x=1 for user, group, others.
29
Change permissions
`chmod 750 file` or symbolic `chmod g+w`.
30
Ownership
`chown user:group file`.
31
Special bits
setuid, setgid, sticky; view with `ls -l` (+s/t).
32
umask
Default permission mask; view/set with `umask`.
33
ACLs
Fine‑grained perms: `getfacl`, `setfacl`.
34
Users database
`/etc/passwd` (accounts), `/etc/shadow` (hashes).
35
Groups database
`/etc/group`.
36
Create user
`sudo adduser ` (Debian) or `useradd` (low‑level).
37
Delete/lock user
`deluser` or `userdel`; lock with `usermod -L`.
38
Modify user
`usermod -aG ` adds to group.
39
Password aging
`chage -l `; set with `chage`.
40
Create group
`groupadd `.
41
Remove group
`groupdel `.
42
List groups for user
`groups `.
43
Switch user
`su - `; to root with `sudo -i` if allowed.
44
sudo
Privilege escalation per `/etc/sudoers`; edit with `visudo`.
45
PAM
Pluggable Authentication Modules control auth policies.
46
Process listing
`ps aux`, `top`, `htop`.
47
Signals
Terminate with `kill `; SIGKILL `-9`, SIGTERM `-15`.
48
Job control
`&`, `jobs`, `bg`, `fg`, `Ctrl+Z`.
49
Priorities
`nice` sets, `renice` changes niceness.
50
Background survival
`nohup cmd &` or `disown`.
51
Systemd service control
`systemctl start|stop|restart|status `.
52
Enable at boot
`systemctl enable `; disable with `disable`.
53
Targets (runlevels)
`systemctl get-default`/`set-default`.
54
Logs (journald)
`journalctl -u `; follow with `-f`.
55
Traditional logs
Files under `/var/log/` (e.g., `auth.log`, `syslog`, `secure`).
56
Crontab
Schedule with `crontab -e`; format: m h dom mon dow cmd.
57
System‑wide cron
`/etc/crontab`, `/etc/cron.*`.
58
At jobs
One‑time run: `at 22:00` then commands, end with `Ctrl+D`.
59
Time sync
`timedatectl` and `chrony`/`systemd-timesyncd`.
60
Networking basics
Show IP: `ip addr`; routes: `ip route`.
61
Test connectivity
`ping`, `traceroute`/`tracepath`.
62
Name resolution
`/etc/hosts`, `/etc/resolv.conf`, `nsswitch.conf`; test with `dig`/`nslookup`/`host`.
63
Open ports
`ss -tuln` or `netstat -tuln`.
64
SSH client
`ssh user@host`.
65
SSH keys
Generate `ssh-keygen`; copy with `ssh-copy-id`.
66
File transfer
`scp`, `sftp`, `rsync -av`.
67
Firewall (UFW)
`ufw enable`; `ufw allow 22/tcp`; `ufw status verbose`.
68
FirewallD
`firewall-cmd --add-service=ssh --permanent && --reload`.
69
SELinux/AppArmor
Mandatory access control frameworks; tune via policies.
70
Text viewing
`cat`, `less`, `head`, `tail -f`.
71
Search text
`grep -R`, `egrep`, ripgrep `rg`.
72
Find files
`find /path -type f -name '*.log'`.
73
Locate db
`updatedb`; search with `locate`.
74
Redirection
`>`, `>>`, `2>`, `&>`, `tee`.
75
Pipes
`|` sends stdout of left command to right command.
76
Editors
`nano`, `vim`, `ed`.
77
Compression
`tar`, `gzip`, `bzip2`, `xz`; e.g., `tar czf backup.tgz dir/`.
78
Environment vars
`printenv`, set `VAR=value cmd`, export with `export VAR=value`.
79
Bash expansion
Globbing `* ? []`; brace `{a,b}`; command `$(...)`.
80
History
`history`, rerun with `!n` or `!!`.
81
Timestamps
`stat file` shows atime, mtime, ctime.
82
System info
`uname -a`, `lsb_release -a`, `hostnamectl`.
83
Hardware info
`lscpu`, `lsmem`, `lspci`, `lsusb`, `dmidecode`.
84
Kernel modules
`lsmod`, `modprobe`, `rmmod`.
85
Bootloader
GRUB; edit `/etc/default/grub`, update with `update-grub`.
86
Rescue/emergency
Boot to rescue target; `systemctl rescue`.
87
Backups
`rsync`, `tar`; verify and test restores.
88
Security updates
Apply promptly; consider unattended‑upgrades (Debian).
89
Logs for auth
Debian: `/var/log/auth.log`; RHEL: `/var/log/secure`.
90
File integrity
`sha256sum file` to verify checksums.
91
Networking config tools
`nmcli` on NetworkManager systems.
92
Host keys vs user keys
Server identity in `/etc/ssh/ssh_host_*`; user creds in `~/.ssh/`.
93
SSH hardening
Disable root login, use keys, set `AllowUsers`, change `PasswordAuthentication` to `no`.
94
Name services order
`/etc/nsswitch.conf` controls lookup sequence.
95
System resource monitors
`top`, `htop`, `iostat`, `vmstat`, `sar`.
96
Space hogs
`du -xhd1 /` to find large dirs (Debian syntax).
97
Tar extract
`tar xzf archive.tgz -C /target`.
98
Grep regex basics
`.` any char; `^` start; `$` end; `*` 0+; `+` 1+; `?` 0/1; `[]` class.