Linux directory structure

xiaoxiao2021-03-06  15

The Linux directory structure is the same as Windows, and it is also organized by the directory in Linux. But the difference is that there is only one root directory under Linux, not as one partition in Windows. If there are multiple partitions, you need to use other partition mount to the root directory. Everyone recalls that when it is partitioned for the Linux, there is a option to fill, that is, Mount Point, we write one "/", which is the root directory (this is the opposite of Windows, one is "/", one is " / "It's really natural. Other probably/ home, / usr. After installing the system, you will find / home, / usr is the Home, USR directory below the root directory! Yes, the entire partition is used for this directory.

After installing Linux, there is a lot of directory, let's explain some important directories:

/ bin: The command, tools that store more than 100 Linux

/ dev: All device files under Linux!

/ HOME: User Home Directory, once a user, will create a directory with the same name as the user, give the user a space.

/ Lost Found: As the name suggests, some missing files may be found here

/ MNT: The hookpoint of external equipment, usually two subdirectors with cdrom with FLOPPY! Its existence simplifies the use of disc and floppy disk. You only need to run in the CD, you can visit the content mount to / mnt / cdrom on the CD, you can visit the contents of the CD to / MNT / CDROM. However, after you use it, you should leave this directory and perform Umount / MNT / CDROM. Similarly, the floppy disk is Mount / MNT / FLOPPY and Umount / MNT / FLOPPY.

/ proc: This is actually a virtual directory, and you can access the content in memory by here.

/ sbin: The system level command and tool is stored here.

/ usr: Places usually used to install a variety of software / usr / x11r6 x window directory / usr / bin and / usr / sbin some post-installed commands and tools / usr / include, / usr / lib and / usr / share Is to store some shared link library / usr / local commonly used to install new software / usr / src linux source

/ boot: The files needed to store the system startup

/ etc: store most of Linux most configuration files

/ lib: static link library

/ root: Root: Root user's home directory, this is one of privileges!

/ var: Usually used to store things in some changes!

/ var / log: Storage System Log / VAR / Spool: Store some mail, news, print queue, etc.

In addition, it is to be explained that the concept of "current directory", "path", etc. under Linux is the same as WINDOWS.

转载请注明原文地址:https://www.9cbs.com/read-46291.html

New Post(0)