Introduction to Linux File System Directory Structure

  

For Linux, its tree structure is different from Windows. Windows can have multiple partitions, each with roots, but Linux has only one root, all other files, directories or Hard disk partitions, floppy disks, CDs, and u disks must be mounted (mounted) to a directory under the Linux root to be accessed and used. The mount command and the u disk and other hard disk partitions are mounted later. Have an intuitive understanding of the common system catalog usage under the root directory.

/bin is used to store commands that can be executed by ordinary users.

/boot is used to store the files necessary for Linux boot, that is, the contents of the boot partition we created.

/dev The device file used to store the system.

/etc Used to store various configuration files for the system.

/home is used to store the home directory of each ordinary user of the system.

/lib is used to store system shared library files.

/lost+found The file storage directory retrieved after the file system is corrupted.

/media Fedora is used to mount the directory of the file system such as CD, u disk.

/misc Used to mount an NFS shared directory.

/mnt Directory for mounting other hard disk partition systems (such as mounting xp partitions).

/opt Some third-party software vendor software installation locations, such as the domestic red flag office, are stored here.

/root The home directory of the root user, which cannot be accessed by ordinary users.

/sbin Stores system management commands that only the root user can run.

/tmp Temporary Directory

/usr Directory for storing various applications and data files for all users. There are also /bin, /lib, /in this directory. Etc and other directories.

/var is used to store files that change frequently in the system.

The directories we usually access on a daily basis are the /home directory, the /mnt directory, the /media directory, and the /usr directory.

Copyright © Windows knowledge All Rights Reserved