Understanding of directories in Linux files

Source: Internet
Author: User

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

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.