Linux File System
/bin (binaries): This directory contains Linux binaries like the cd and ls command that we executed earlier.
/sbin (system binaries): This directory holds system binary files that serve as administrative commands (like fdisk).
/boot: This directory contains the Linux bootloader files.
/dev (devices): This directory contains the device configuration files (like /dev/null ).
/sys: This is similar to /dev, which contains configurations about devices and drivers.
/etc (etcetera): This directory contains all the administration system files (like /etc/passwd shows all the system users in Kali Linux).
/lib (libraries): This directory hods the shared libraries for the binaries inside /bin and /sbin.
/proc (processes): This directory contains the processes and kernel information files.
/lost+found: As in the name, this directory contains the files that have been recovered.
/mnt (mount): This directory contains the mounted directories (example, a remote file share).
/media: This directory holds the removable media mounted directories (like DVD).
/opt (option): This directory is used for add‐on software package installation. It is also used when installing software by users (example, hacking tools that you download from GitHub).
/tmp (temporary): This is a temporary folder used temporarily, the holdings are wiped after each reboot. The tmp folder is a good place to download our tools for privilege escalation once we got a limited shell.
/usr (user): This directory contains many sub-directories. In fact, /usr/share/ is a folder that we need to memorize because most of the tools that we use in Kali Linux (like Nmap, Metasploit, etc.) are stored there, and it also contains the wordlist dictionary files (/usr/share/wordlists).
/home: This is the home for Kali Linux users (example /home/kali/).
/root: Home directory for root user.
/srv (serve): This folder contains some data related to system server functionalities (like data for FTP servers).
/var (variable): This folder contains variable data for databases, logs, and websites. For an example, /var/www/html/ contains the files for the Apache2 web server.
/run (runtime): This directory holds runtime system data (like currently logged‐in users)
Last updated