In the Linux file System tree, the directory is just the middle node of the path or the branch fork point, the file is the final leaf
The directory in Linux is also a file, comparing special files. Can be seen as a node or a station in a path,
As a node of a path, it records files or directories that can be reached through this node.
The properties of the directory name file can be viewed by the command "ls-l-d directory name ";
The command "ls-l directory name " allows you to view the properties of a file or directory that can be reached by a directory name node/properties that can view the contents of a directory file
CD directory Name: Comes to this node. Only the node to which it is logged can be reached, or the file it is logged can be manipulated. (Whether it can come to this node depends on the x attribute of the directory)
mkdir Directory Name: Create a node or directory file.
LS Directory name: View what the node is logged (Next level directory, or file)
R allows you to read the contents of the node, allowing the contents of the directory file to be read
W allows to modify the contents of the node, allowing the contents of the directory file to be modified
x allow access to the directory/node; Allow opening of the directory file
Understanding of directories in Linux files