zold@Zold:~$ cd /
zold@Zold:/$ ls
bin dev home lib lib64 lost+found mnt proc run snap sys usr
boot etc init lib32 libx32 media opt root sbin srv tmp var-
/root directory -
/homehome directory for all non-root users -
/roothome directory for all root users -
/binuser executable files ex: [cp, cat, ...] -
/sbinsystem binary files. These are executables used for system administration, only root users can use this -
/libContains shared library files that are required to boot the system from/binand/sbin. -
/usrThese are shareable, read-only files, including executable binaries and libraries, man files, and other types of documentation./usr/locallibraries and packages that you will download will be here ex: docker, java, ...etc/usr/local/binpackages commands will be here/usr/local/libpackages will be here
-
/optlibraries and packages that you will download will be here tooSo what is the diffrent between
/optand/usr/local?/optit be here packages that do not divide their components unlike/usr/local -
/bootcontains the static bootloader and kernel executable and configuration files required to boot a Linux computer. -
/etccontains the local system configuration files for the host computer. -
/devcontains the device files for every hardware device attached to the system, ex: keyboard, mouse, camera ...etc -
/varVariable data files are stored here. This can include things like log files, MySQL, web server data files, email inboxes .... etc for example/var/cachecontains cache data from packages -
/tmptemporary directory. used by the operating system and many programs to store temporary files. -
/mediaand/mnta temporary mountpoint for regular filesystems (as in not removable media) that can be used while the administrator is repairing or working on a filesystem.