
上QQ阅读APP看书,第一时间看更新
Linux directory structure
There is a standard structure for Linux directories. According to Linux, generally, everything is a file, even directories and devices. In order to work properly, Linux manages these files in a specific way under a hierarchical design:
- /root: All the files and directories start from this directory
- /home: Contains personal files of all users
- /bin: Contains all the binaries (executables)
- /sbin: Like /bin, but it contains the system binaries
- /lib: Contains required library files
- /usr: Contains binaries used by a normal user
- /opt: Contains optional add-on applications
- /etc: Contains all the required configuration files for the programs
- /dev: Contains device files
- /media: Contains files of temporary removable devices
- /mnt: Contains mount point for filesystems
- /boot: Contains boot loader files
- /tmp: Contains temporary files
- /var: Contains variable files, such as logs
- /proc: Contains information about the system processes:
There are many types of file in Linux operation systems. Each file is represented by a specific symbol—directories, regular files, and sockets, which are communication techniques between applications.