Linux basics #2: Basic Structure of the Linux File System

Source: Internet
Author: User
Tags touch command

Linux basics #2: Basic Structure of Linux File System is an inverted tree structure. All files or folders are contained in a root directory. Linux is case sensitive. The name can contain a maximum of 255 characters except the forward slash (+). Each Shell has a current working directory. Run the command pwd (print work directory) you can view the current working directory touch command: Create a blank file or update an existing file (the last modification). the file at the beginning is a hidden file. The vast majority of the hidden files are the configuration file command "ls", which can list the current directory information. The following parameters are supported: ls-a displays all files, including hiding the ls-l display file DETAILS ls-R recursive display subdirectory information ls-ld display directory and link information command "file" can be used to view the specified file type Linux directory two concepts are used: absolute path and relative path: absolute path: start with the root directory "/", recursively returning each level of directory until the target file/folder, such as:/etc/passwd relative path: start with the current directory, path to the target file/folder, such :.. /.. /etc/passwd relative Basic path definition: ".." indicates the parent directory, "." indicates the current directory, and "~" Represents the current user's home directory, and "-" represents the previous working directory cd ~ When you get back to the home directory, you can directly press cd + enter to go back to the home directory. No matter in any directory, cd + press enter will go back to the home 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.