Directories under Linux: 1. bin directory; 2. sbin directory; 3. usr directory; 4. dev directory; 5. home directory; 6. proc directory; 7. var directory; 8. boot directory ; 9. etc directory; 10. lib directory; 11. selinux directory; 12. mnt directory, etc.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
Those common directories in linux
1. bin directory
binary (binary ): Directory of executable program files corresponding to many "instructions"
2. sbin directory
Description: super binary Super binary has many "instructions" corresponding to the "executable program file" directory. The instructions corresponding to the files in this directory are all instructions that can be executed by the "root" user. Ordinary users cannot use the commands in this directory:
Ordinary users : Start with $
root user: Start with
#3. usr directory
Description: unxi system resource
unix system resource (unix system resource file directory)
This directory is similar to the C:/Program files directory of the win system
This directory is often used to install various software
After the software is installed, the corresponding instruction will be formed. The executable program file corresponding to the instruction is stored in the following directory
/usr/bin. There are many "executable program files" corresponding to the "instructions". "Directory/usr/sbin Directory of "executable program files" corresponding to the instructions executed by the root user
4. dev directory
Description: device system hardware device directory (all hardware in the Linux system is represented by files)
For example: /dev/cdrom is the optical drive and /dev/sda is the first scsi hard disk
5. Home directory
Explanation: The "home directory" of ordinary users
Every time an ordinary user is added to the system, it will be This directory sets a file directory for this directory to represent the user's "home directory". When the user later uses the system, he will first enter his directory. The name of the home directory defaults to the same as the current user's name. The user has the absolute highest permissions on the home directory
6. proc directory
Memory mapping directory, this directory can view system-related information
7. var directory
variable variable, volatile
The files stored in this directory are often Changes will occur (add, modify, delete)
Often used to deploy project program (php) files
/var/www/shop
/var/www/book
8. boot directory
Description: System startup core directory, used to store system startup files
The core file of the Linux system only needs 18M
du -h: Check the file size
9. etc directory
System main configuration file directory
For example:
/etc/passwd File used to store user information
/etc/group File used to store group information
10. lib directory
library: system resource file library directory
11. selinux directory (secure enhanced linux)
Description: Security-enhanced linux protects the system
It will have a certain impact when installing software
12. mnt directory
Description: Stores temporary Mapping file system, we often mount the floppy drive and CD-ROM drive in the floppy and cdrom subdirectories here.
13. tmp directory
Description: Directory for storing temporary files
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What directories are there under linux?. For more information, please follow other related articles on the PHP Chinese website!