The newbies to the Linux command-line may wind up asking why there are such a significant number of special directories, what they are there for, and why things are sorted out how they are. If you are not acclimated with how Linux arranges documents, the directories can appear to be absolute self-assertive with odd truncated names and, much of the time, repetitive names. It turns out there’s a strategy to this depends on many years of UNIX convention, and in this section, we will be giving a prologue to the Linux directory structure.
Ex: (kali@kali:~$ cd /root)
Ex: (kali@kali:~$ cd /bin)
Ex: (kali@kali:~$ cd /lib)
Ex: (kali@kali:~$ cd /boot)
Ex: (kali@kali:~$ cd /opt)
Ex: (kali@kali:~$ cd /etc)
Ex: (kali@kali:~$ cd /home)
Ex: (kali@kali:~$ cd /srv)
Ex: (kali@kali:~$ cd /media)
Ex: (kali@kali:~$ cd /usr)
“/usr/bin”: This directory incorporates a lot of commands.
Ex: (kali@kali:/usr$ cd /usr/bin/)
“/usr/lib”: this directory contains libraries that are not legitimately executed by clients or scripts.
Ex: (kali@kali:/usr$ cd /usr/lib)
“/usr/local”: This registry can be utilized by an owner to install software locally.
Ex: (kali@kali:/usr$ cd /usr/local/)
“/usr/share”: This directory contains architecture-independent data.
Ex: (kali@kali:/usr$ cd /usr/share)
“/usr/src”: This directory is for kernel source files.
Ex: (kali@kali:/usr$ cd /usr/src)
Ex: (kali@kali:~$ cd /dev)
Ex: (kali@kali:~$ cd /proc)
Ex: (kali@kali:~$ cd /sys)
Ex: (kali@kali:~$ cd /tmp)