Linux file naming rules

Linux directory structure naming convention

Almost all Linux versions will follow FHS (Filesystem Hierarchy Standard), Chinese translation is the filesystem hierarchy standard. C similar to the Windows operating system disk file directory, FHS organize files using a tree structure. FHS defines the purpose of each region of the system, files and directories that constitute the minimum required, but also gives the exception process with the conflict processing.

 

Linux Directory Structure

              / Boot: the boot file storage directory, kernel file (vmlinuz), the boot loader (bootloader, grub) are stored in this directory;

              / Bin: basic commands for all users to use; can not be associated to a separate partition, OS startup program that is will be used;

              / Sbin: basic commands management classes; not related to a separate partition, OS started, is used procedure;

              / Lib: Basic shared libraries and kernel module files (/ lib / modules);

              / Lib64: dedicated auxiliary x86_64 shared library file system on the storage position;

              / Etc: Configuration Files directory (plain text files);

              / Home / USERNAME: regular user's home directory;

              / Root: administrator's home directory;

              / Media: a portable mobile device mount point;

                     / Cdrom: CD-ROM mount point

                     / Usb: USB device mount point

              / Mnt: Temporary file system mount point;

              / Dev: special device file and a file storage location;

                     b: block device, random access

                     c: character device, linear access

              / Opt: installation location of the third party application;

              / Srv: service uses data running on the system;

              / Tmp: temporary file storage location;

              /usr: universal shared, read-only data;

                     / Bin: to ensure fully functional application system provided;

                     / Sbin: basic commands management classes; not related to a separate partition, OS started, is used procedure;

                     / Lib: Basic shared library files

                     / Lib64: dedicated auxiliary x86_64 shared library file system on the storage position;

                     / Include: C program header (header files);

                     / Share: independently structured data, e.g. doc, man and the like;

                     / Local: installation location of the third party application;

                            /bin, /sbin, /lib, /lib64, /etc, /share

              /var: variable data files

                     / Cache: Application cache data directory;

                     / Lib: application state information data;

                     / Local: dedicated to the application of variable data stored in / usr / local;

                     / Lock: Lock files

                     / Log: Log files and directories;

                     / Opt: for the dedicated / application data is stored in the variable opt;

                     / Run: running processes related data; pid file is typically used to store process;

                     / Spool: application data pool;

                     / Tmp: generating temporary data storage system between two reboot;

              / Proc: a virtual file system output kernel and process information related to;

              / Sys: Output for the current virtual file system on system-related information of hardware devices;

              / Selinux: security enhanced Linux, selinux relevant security policies and other storage location information;

Guess you like

Origin www.cnblogs.com/ColoDu/p/11111645.html