Linux directory structure (ubuntu1204)

Source: Internet
Author: User

Directory
Describe
/
The root directory is the most important directory in the entire system, all directories are derived from the root directory, and the root directory is also related to power-on/restore/system repair and other actions. Because the system requires specific power-on software, core files, power-on required programs, function libraries and other file data, if the system error occurs, the root directory must also include the ability to repair the file system after the program. (c-plate similar to WinDOS)
/bin Commands in this directory can be used by root and normal users, or in single-use maintenance mode
/boot The main place to boot will use the file, including the Linux core files and boot menu and boot required configuration files and so on. Linux kernel commonly known as: Vmlinuz, if you are using grub this boot manager, there will also be/boot/grub this directory
/cdrom
The directory where the optical drive is
/dev
Device Files Directory
/etc
The directory where the system's main settings files are located. For example, personnel account password crisis, various services, such as the startup files. This directory of various pieces, ordinary users have access rights, but only the root can be modified
/home
This is the user home directory of the system presets. When a new general user account is added, the default user home directory is generated here. The home directory has two kinds of code: ~: The home directory representing the current user ~gino: The home directory representing the username Gino
/lib
The library that is used when the system is powered on, and the library that the instruction calls in the/bin or/sbin directory. /lib/modules The driver is placed under this directory
/lost+found
Files used to store some of the fixes in the fsck process
/media
The directory where the mobile device is located, such as U disk
/mnt
Mount the directory used
/opt
directory where third-party software is placed
/proc
The directory itself is a virtual file system where the data is placed in memory
/root
Home directory for Super User root
/run
Files that describe system information since the system was started
/sbin
The instructions used by the system administrator are stored
/srv
The data directory that these services need to access after the network service is started. Common with FTP
/sys
A virtual file system. The main record is the kernel-related stars. Currently loaded kernel module and kernel detected by the hardware device information, etc.
/tmp
Temp directory, reboot will clean up this directory
/usr

/usr/bin Store Most commands

/usr/sbin Most service programs

/usr/include header files for programming languages

/usr/local locally installed software

/usr/lib contains libraries of applications, target files, and executable files or scripts that are not commonly used by the general user

/usr/share places the shared files, the data that is placed in this directory is data that is readable by the hardware architecture.

/USR/SRC where the source code is placed


/var
A directory that takes up hard disk capacity after the system is running. Files that are primarily for normal changes, including cache, login document (log file), and files generated by some software (lock file, run file) such as MySQL database files, etc.







Linux directory structure (ubuntu1204)

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.