Directory structure of the Linux file system

Source: Internet
Author: User

Use version: Centos 6.6

Tree-shaped Display directory

Install tree command:yum-y install tree

Tree-c/etc/color display directory plus parameter C

TREE-CL 2/etc/only show 2 levels of directory parameters L


[email protected] ~]# pstree #进程列表

Init─┬─auditd───{auditd}├─console-kit-dae───63*[{console-kit-da}]├─crond├─dbus-daemon───{dbus-daemon}├     ─DHCLIENT├─LOGIN───BASH├─MASTER─┬─PICKUP│└─QMGR├─5*[MINGETTY]├─RSYSLOGD───3*[{RSYSLOGD}] ├─SSHD───SSHD───BASH───PSTREE└─UDEVD───2*[UDEVD]

[[email protected]/]# ls boot home lost+found mnt proc sbin srv tmp Varbin Dev etc lib media opt root se Linux sys usr


/bin,/sbin,/usr/bin,/usr/sbin bin is a binary file that can be executed; the directory where the command is stored, and sbin is the command that Superuser root can use. Sbin=superbin Shorthand
/boot Linux kernel and boot system program required file directory, partition size 100-200m can be
/ Dev stores a Linux external device that accesses a file in that directory, which is equivalent to accessing a device;
/etc/ System configuration file directory
/home system Default User house directory, when adding user account, the user's home directory is stored in this directory, ~ represents the current user's home directory, ~test represents the user test home directory. It is recommended that you separate partitions and set up large disk space to allow users to store data.
/lib,/usr/lib,/usr/local/lib,   directory of function libraries used by the system , the program in the execution process, need to call some additional parameters when the function library to assist, the more important directory is/lib/modules.

/media,/mnt cd default mount point, usually the disc is mounted under/mnt/cdrom, or not necessarily, you can choose any location to mount.
/opt is a directory for some large software or some special software
/proc System kernel mapping, this directory of data are in memory, such as the system core, external devices, network status, because the data are stored in memory, so do not occupy disk space, the more important directory has/proc/cpuinfo,/proc/interrupts, /PROC/DMA,/proc/ioports,/proc/net/*, etc.;

Echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all

#关闭ping Others can't ping themselves, I can ping other people


/root root User home directory, the first boot partition of the system is/, so it is best to place/root and//in a partition.
/selinux firewall
/srv data directories that need to be accessed after the service is started, such as the Web page data that the WWW service needs to store within/srv/www
/sys
The /sys/class contains all the device types registered in kernel, linked to devices

/sys/dev maintains a list of primary and secondary numbers by character device and block device, linked to device

/sys/device is a global device architecture, containing all the discovered physical devices registered on various buses, a hierarchical representation model of all the devices in the system, and the most important directory structure for/sys file system management devices.

/SYS/FS describes all file systems in the system

/sys/kernel stores all the adjustable parameters in the kernel

/ tmp The directory where the files are temporarily stored by the general user or the program being executed, accessible to anyone, important data cannot be placed in this directory

/ usr similar to the WIN Program Files folderApplication Storage directory,/usr/binStore Applications,/usr/sharestore shared data,/usr/libstorage cannot be run directly, but it is necessary for many programs to run some library files. /usr/local: Store the software upgrade package. /usr/share/doc:System description file storage directory. /usr/share/man:Program Description file directory, when using the man LS will query/usr/share/man/man1/ls.1.gz content recommended separate partition, set a large disk space


/var    /var/log,/var/log/message:   all log-in Files directory, /var/spool/mail:  the directory where mail is stored,   Strong style= "Background-color:inherit;" >/var/run:   program or service startup , its pid is stored in the directory. It is recommended to separate partitions to set large disk space.



This article is from the "Model Student's Learning blog" blog, please be sure to keep this source http://8802265.blog.51cto.com/8792265/1622587

Directory structure of the Linux file system

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.