1.1 Summarize Linux Fundamentals Flashcards
/boot
stores boot loaders.
/proc
Stores system processes and resources.
/sys
System ( helps with interacting with Linux kernel; everything runs in RAM and deletes on shutdown).
/var
Stores files that grow in size like log files, databases for mail, etc.
/usr
User applications; non-essential user applications are stored here.
/lib
Libraries; files that binaries need to run certain application settings.
/dev
Devices; hardware, KBMs, harddrives.
/etc
Et cetera; all system-wide configuration files are here.
/opt
Optional; manually installed software from vendors and some repositories(like zeek or suricata).
/bin
Binaries; basic shell commands are stored here.
/sbin
System Binaries; Binaries that a system admin would use.
/home
All your personal files, documents, and downloads; user settings are also stored hidden files like .bashrc or .local.
/media
Flash Drives; removable devices and drives.
/mnt
mounted drives; permanent storage.
/root
Root user’s home folder.
/tmp
Stores system and user application data that is needed only temporarily.
mkinitrd command
generates RAM disk files, initrd.img and initramfs.img that the bootloader uses to load the system kernel.
grub2-install command
installs the grub2 configuration files to system.
grub2-mkconfig command
generates a new grub.cfg config file that can be used to update existing grub.cfg file.
grub2-update command
updates the grub2 configuration file.
dracut command
predecessor of mkinitrd command. It will generate a generic initramfs image
initrd.img
Archive file that contains all the essential files that are required for booting the OS.
vmlinuz
The vmlinuz file is found in the boot directory and contains kernel code and data required to start and manage the system.
GRUB2
Newer version of GRUB. It offers more control over the boot process, boot devices, and boot behavior.
The default bootloader today.