Linux - (Chapter 2) Directory structure of Linux

VMwear workstations download and installation

Ubuntu server 18.04 installation

VScode download and installation

Connect to a remote server using VS Code

Download, installation and remote connection of MobaXterm

Download, install and use Filezila (transfer files to the server)

Table of contents

1.Basic introduction

2.Linux directory structure

3. Specific directory description

4.Supplement


1.Basic introduction

        The Linux file system adopts a hierarchical tree directory structure. The top level of this structure is the root directory "/" , and then other directories are created under this directory.

2.Linux directory structure

3. Specific directory description

  • /root: This directory is the user home directory of the system administrator , also known as the super privileged person.
  • /bin: is the abbreviation of Binary. This directory stores the most commonly used commands and binary files .
  • /sbin: s means Super User. The system management program used by the system administrator is stored here .  
  • /boot: stores some core files used when starting Linux , including some connection files and image files .
  • /dev: Similar to the Windows device manager, it stores all hardware in the form of files .
  • /etc: All configuration files required for system management , and the subdirectory my.conf.
  • /home: stores the home directory of ordinary users . In Linux, each user has his own directory. Generally, the directory is named after the user's account.
  • /var: This directory stores ever-expanding things . It is customary to place frequently modified directories in this directory, including various log files.
  • /lib: Equivalent to System32 files in Windows. The most basic dynamic link shared library required for system startup , its function is similar to the DLL file in Windows. Almost all applications require these shared libraries.
  • /usr: Many user applications and files are placed in this directory, similar to the program files directory under Windows.
  • /usr/local: This is another directory where additional software is installed on the host . Generally, it is a program installed by compiling the source code.
  • /media: The Linux system will automatically recognize some external devices , such as USB flash drives, optical drives, etc. After recognition, Linux will mount the recognized devices to this directory.
  • /mnt: This directory is for users to temporarily mount other file systems. You can mount external storage on /mnt, and then enter this directory to view the contents.
  • /tmp: used to store some temporary files .
  • /opt: The directory where additional software is installed on the host, and the location provided for third-party software packages . If the ORACLE database is installed, it can be placed in this directory. Default is empty.
  • /run: Stores real-time information and temporary files since the system is running , which will disappear after restarting.
  • /selinux: is a security subsystem that controls programs to only access specific files.
  • /proc: (kernel related) This directory is a virtual directory, which is a mapping of system memory . Access this directory to obtain system information.
  • /srv: (kernel-related) service abbreviation. This directory stores some data that needs to be extracted after the service is started .
  • /sys: (kernel related) The file system in the kernel is installed here .
  • /lost+found: This directory is usually empty. When the system is shut down illegally , some files are stored here.

4.Supplement

        bin, sbin, lib and lib64 are all linked under the usr folder.

        A DDL file (Dynamic Linkable Library, dynamic link file) is an executable file that allows programs to share code and other resources necessary to perform special tasks.

        There is a root directory "/" in the directory structure, and other directories are under "/".

        All devices can be represented through files.

Guess you like

Origin blog.csdn.net/m0_45447650/article/details/131917127