Linux file system

Source: Internet
Author: User

The philosophical thought of Linux includes the following aspects:

1, everything is composed of files (including hardware devices, as well as communication interfaces, etc.), using text files to save configuration information (benefit: A text editor to complete most system operations).

2, by a number of functions of a single program: To ensure that a program only do one thing, and can do it well.

3, try to avoid interaction with the user. (Easy to automate tasks in a programmatic way)


Ii. documentation System and Documentation:

Linux uses a file system in the form of a directory, file, and tree hierarchy. The main directory is to do path mapping; A file is a stream of data stored in a storage space, and the data can be accessed by name.


1, the file path representation:

Absolute path: The path from the root start.

Relative path: The path represented at the beginning of the current position.


2, the use of the file name rule:

Strictly distinguish character case;

The directory is also a file, under the same path, two files cannot have the same name;

Supports any character other than/;

The maximum length cannot exceed 255 characters.


3. Linux File system structure:

/: System original starting point, root directory.

Home: User home directory (user start directory), the location of normal user management files.


Working directory:

/etc/sysconfig/network-scripts/ifcfg-eno16777736

BaseName: The right-most file or directory name, such as the above ifcfg-eno16777736;

Dirname:basename the path to the left, as above/etc/sysconfig/network-scripts/;


Get basename of File path:

#basename/etc/sysconfig/network-scripts/ifcfg-eno16777736

Get dirname of File path:

#dirname/etc/sysconfig/network-scripts/ifcfg-eno16777736




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.