Directory: path mapping;
File: Storage space Storage of a stream of data, the data can be accessed by name;
File system: Hierarchical structure, indexed;
/: Original starting point;
Inverted tree-like structure;
/DEV/PTS/2:
Leftmost/: Represents the root directory
Other/: Represents the path delimiter
The path delimiter for Linux is/
Windows is the \
The path to the file is represented by:
Absolute path: The path represented from the root
Relative path: The path represented at the beginning of the current position
Rules for using file names:
Strictly differentiate character case: File1, File1, FILE1
The directory is also a file, under the same path, two files cannot have the same name;
Supports the use of any character other than/;
Maximum of 255 characters;
User has home directory: Home,
The user's starting directory, the location of the common user management file;
Working directory:
/etc/sysconfig/network-scripts/ifcfg-eno16777736
BaseName: The right-most file or directory name;
Dirname:basename the path to the left;
Command:
~]# Basename/path/to/somefile
Somefile
~]# Dirname/path/to/somefile
/path/to
What is a file in Linux? How can many documents be organized effectively?