Cover photo

Linux Directories

which (binary)

cd/ —> root

/bin —> contains essential executables like cd, ls, mkdir, bash, etc

/sbin —> system binaries only executed by root user eg mount, route, reboot, ping, etc

/usr —> /bin —> non-essential installed binaries intended for end user

            /local —> /bin contains locally compiled binaries — echo $PATH

/etc —> editable text configuration, text based config file that you can edit, ends in .conf

/home —> contains different users

~ —> squiggly, normal file path when opening a terminal session

/boot —> contains files to boot the system eg. linux kernel

/dev —> (device files) interface with hardware or drivers as if they were regular files.

/opt —> optional or addon files

/var —> variable files like log and cache files

/tmp —> temporary files that wont be persisted between reboot

/proc —> does not exist in disk but is created in-memory on the fly by linux kernel to keep track of running processes