Directory Structure of Linux

Source: Internet
Author: User

Linux directory structure detailed

/bin: Binary available to all users;

/sbin: Binary files for system administration use;

/boot: Each static file that the bootloader must use: Kernel, Initramfs (INITRD), grub, etc.;

/dev: Store special files or device files;

There are two types of devices: Character devices (linear devices), block devices (random devices);

/etc: The configuration file of the System program; (contains shell scripts for starting/stopping a single process)

/home: The central location of the general family directory; The home directory of each ordinary user is the default subdirectory with the same name as the user name in this directory,/home/username;

/root: Administrator's home directory; optional;

/lib: Provides a shared library for system startup or applications on the root file system (/bin,/sbin, etc.) and provides kernel modules for the kernel

Libc.so.*: Dynamically linked C library;

ld*: Runtime linker/loader;

Modules: The directory used to store kernel modules;

/LIB64:64-bit system-specific path for storing 64-bit shared libraries;

/media: Portable equipment mount point, CDROM, floppy, etc.;

/MNT: Temporary mount point for other file systems;

/OPT: Installation location of the additional application, optional path;

/SRV: Data provided by the current host for the service;

/tmp: Temporary files, including system and user-created temporary files, the file will be deleted in the directory when the system restarts.

/USR:USR Hierarchy, globally shared read-only data path;

Bin, Sbin

LIB, lib64

INCLUDE:C program header file;

Share: Storage location of schema-specific files such as command-book pages and self-documenting documents

Local: another level directory;

Installation location of the X11r6:x-window program

SRC: Where the program source files are stored

/usr/local:local hierarchy, which allows the system administrator to install local applications, and is typically used to install third-party programs;

/var:/var Hierarchy, a directory that stores data that is often changed;

CacheApplication cache data

LibVariable state information

LocalVariable data for/usr/local

LockLock files

Loglog files and directories

OptVariable data for/opt

RunData relevant to running processes

SpoolApplication Spool Data

TMPTemporary files preserved between system reboots

/PROC: Process information; Contains information about system processes and system resources that exist in text form

/SYS:SYSFS virtual file system provides a better way to access kernel data than proc; its main function is to provide a unified model interface for managing Linux devices;


Directory Structure of Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.