Linux Filesystem Flashcards
Root directory containing all other directories. Not to be confused with the /root home file.
/
Contains the majority of app binaries such as commands used by the base operating system (cat, ls, cd).
/user/bin
When installing new things it often places a link inside ___ that leads to where the application is installed rather than actually placing it there.
/bin
System binaries that are critical for the system to run. Should typically never be modified.
/sbin
Host-specific configuration files for everything from the base OS, to software packages that you install.
/etc
How would you find the SSH config file?
Can find the ssh config file with ls /etc/ssh/
All the hardware devices.
Can find LVM volumes on hard drives.
It also contains the remote teletype (tty) terminals and the kernel drivers.
/dev
Contains all user files that are not root user.
/home
Contains reusable code shared between apps, essential shared libraries, and kernel modules.
/lib
/lib64
What is a library?
What does it look like?
A library is code used by programs to provide functionality or code that can be reused or shared by multiple programs for a common purpose.
Libraries are .so files in Linux, .ddl in Windows
Where auto-mounted drives and removable media are placed
/media
Where temporarily mounted filesystems are placed
/mnt
Typically used only on desktop Linux versions, its where optional software is installed if it wasn’t installed through the package manager. Addons.
/opt
Contains running processes represented as text files. It’s a virtual filesystem used by the kernel to communicate the state of processes running on the system.
/proc
Temporary/cache files that are lost upon reboot. Unfinished downloads, etc.
/tmp