Linux System directory Structure

Source: Internet
Author: User

Linux System directory Structure

After logging into the Linux system, enter the following command in the current command window: # ls/, will appear

Ls is an abbreviation for list that lists the specified directory or file. /is the core directory of the Linux operating system, that is, the root directory.

The man command is used to view the command's help documentation, such as

After logging into the Linux system, enter the following command in the current command window: #man ls will appear

Using the tree command, you can show the file types as trees,

#yum install–y Tree Installation Tree

Soft links (like shortcuts to window systems), storing system commands:

/bin/#普通用户

/sbin/#root用户 =superbin

/usr/bin/

/ser/sbin/

System library file, storage System dynamic connection shared library:

/lib/

/lib64/

/home/#家目录, when a new user is created, there is a corresponding user path in the directory, which is mainly used to store the normal user's home directory.

/boot/#系统启动相关文件, the Linux kernel and the file directory required by the boot system program

/dev/#linux系统特有的设备文件

/etc/#系统配置文件

/media/#媒介目录, default is empty

/cdrom/#将光驱文件系统挂在这个目录下, Mount/dev/cdrom/cdrom

/mnt/#用于存放挂载储存设备的挂载目录的

/opt/#主要存放那些可选的程序

/proc/#系统启动进程

/run/#进程产生的临时文件, PID

/srv/#服务启动后, the required Access data directory, default null (for example, WWW service startup read Web page data can be placed in/srv/www)

/sys/#系统内核相关文件

/tmp/#系统临时目录, default null

/usr/#系统用户命令

/usr/local/#mysql等软件

/var/#存放系统日志的目录.

See which command depends on which library files?

#ls lib/lib64

The common options for Ls (list) are as follows:

# Ls-l Listing More information

#ls –a list all files, including hidden files

#ls-T is arranged by the last change in file time

#ls –d for the directory, list only the directory itself

#ls list the files below the directory

Alias expression means a combination of command + options

Linux System directory Structure

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.