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