Zhangminghui-linux Common Catalogue-3

Source: Internet
Author: User

Features of the Linux directory structure

1, hanging upside down the tree

2,/root is the vertex of the Linux directory

3. Directory and disk partitions are not associated

4,/root directory may correspond to different partitions or disks



/etc/fatab automatically mount configuration files


Linux devices are also files, do not mount is not visible to the portal, if you want to access the device must give the device a portal, the entrance is a mount point, using Mount Mount

For example, mount the optical drive: the optical drive is also a device/dev/cdrom

[[email protected] ~]# Mkdir/mnt/cdrom Create a directory of mounted devices

[[email protected] ~]# mount/dev/cdrom/mnt/cdrom/mount the optical drive device file to the directory

[[email protected] ~]# ls/mnt/cdrom/View the contents of a mounted device


[[email protected] ~]# df-h View mount point


To view the automatic mount configuration file

Configure the boot automatically mount disc file



The Linux directory hierarchy also has standard FHS (Filesystem Hierarchy standard file system hierarchy standards)


/bin/lib/sbin/tmp

/usr also has a directory of the same name/usr/bin/usr/lib//usr/sbin/usr/tmp


/ETC/MOTD Prompt after successful login




/bin the directory in which the binary command resides

/boot Linux kernel and the file directory where the system boot program is located, when installing the system partition, it is generally divided into a boot partition (100m-200m is enough)

The directory where the/dev device file resides

The directory where the/etc configuration file resides

yum,rpm Install the software, the path of the default configuration file is placed in/etc

To start or shut down a service with a configuration file, such as restarting the NIC [email protected] ~]#/etc/init.d/network restart

/etc/resolv.conf can set DNS, network card profile can also set DNS, network card configuration file takes precedence. Restart the NIC, the DNS configured by the NIC is overwritten after the DNS of the/etc/resolv.conf configuration

/ETC/INIT.D a configuration file that stores some services and can start or close some services as in the/ETC/RC.D/INIT.D directory

/etc/sysconfig/network-scripts/ifcfg-eth0 NIC eth0 configuration file

/etc/sysconfig/network Host name configuration file

/etc/fstab Setting the configuration file of the disk to be mounted

/etc/inittab Setting the boot run level

/etc/redhat-release Linux System version information

/ETC/MOTD Post-Login prompt information


Zhangminghui-linux Common Catalogue-3

Related Article

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.