Linux File system basic structure

Source: Internet
Author: User
Tags parent directory relative touch command

File system architecture for Linux

Linux file system for an inverted single root tree structure

The root of the file system is "/"

File systems are strictly case-sensitive

The path uses "/" to split, in Windows using the

Current working directory

1 each shell or system process has a current working directory

2 Use the PWD command to display the current working directory

3. File name

File name Case Sensitive

The name has a maximum of 255 characters

is a valid character except for a forward slash

You can create a file by using the Touch command, or update the time of an existing file

With the "." Files that start with are hidden files

4. Listing the contents of the catalog

1 ls-a display all files (including hidden files)

2 ls-l Show details of all files

In Ubuntu you can use LL instead

3 Ls-r recursively display subdirectory information

4 ls-ld Display directory and link information

5. View File types

1 We use file to view the types of files

6. Absolute path and relative path

1 absolute path: to the root directory "/" as the starting point, recursively each level of directory until the destination file/folder, such as:/etc/passwd

Absolute paths are not affected by the current directory, and absolute paths are unique

2 relative path: The path to the destination file/folder, starting with the current directory, such as: ... /.. /etc/passwd

Relative paths are affected by the current directory

3 relative path Basic definition:

“..” Represents the parent directory

“.” Represents the current directory

"~" represents the current user's home directory (each user has a home directory)

"-" represents the previous working directory

4 No matter what directory, CD return is the home directory

5 graph of relative path and absolute path, from PWD in graph to dest

Related Article

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.