[Study Notes] basic Linux operations (2) --- basic structure of the Linux File System

Source: Internet
Author: User
Tags touch command

File System Structure

1. system structure the Linux File is an inverted single tree structure. the root of the file system is "/". file systems are case sensitive. the path is separated by "/", and ipvs is "\".

2. Each shell or system process in the current working directory has a pwd command to display the current working directory.

3. File Name the file name can contain a maximum of 255 characters, except the forward slash (+). It is a valid character. You can use the touch command to create a blank file or update an existing file ". "The file starting with" is a hidden file.

4. List contents in the current directory ----- ls-a: show all objects, including hidden objects-l: Show Details-R: recursively show subdirectories-ld: List directories and links

5. View file + <file Name> View file Type

6. absolute path and relative path absolute path: the path starting with "/", recursively returning each level of directory to the target path, not limited by the current working directory. Relative Path: The Path to the target starting from the current directory, which is restricted by the current working directory.

7. Switch the directory ----- cd "..." to the upper-level directory "." To the current directory "~" A working directory in the user's home directory "-"

The root user's add directory is "/" cd. Press enter to return to the user's home directory.

This command

Pwd displays the current working directory touch creates a blank file playing a more line of existing files time ls lists the content in the current directory file View file Type cd switch directory

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.