Home  >  Article  >  Operation and Maintenance  >  What directories are there under linux?

What directories are there under linux?

青灯夜游
青灯夜游Original
2022-03-21 12:52:0911490browse

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.

What directories are there under linux?

#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"

What directories are there under linux?

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

What directories are there under linux?

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

What directories are there under linux?

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

What directories are there under linux?

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

What directories are there under linux?

What directories are there under linux?

6. proc directory

Memory mapping directory, this directory can view system-related information

What directories are there under linux?

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

What directories are there under linux?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn