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

Source: Internet
Author: User
Tags touch command

Course connection: basic structure of the Linux File System


File System Structure
1. System Structure
  • A 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. current working directory
  • Each shell or system process has a current working directory.
  • The pwd command displays the current working directory.


3. File Name
  • File Name Is case sensitive
  • The name can be up to 255 characters
  • All are valid characters except the forward slash.
  • You can use the touch command to create a blank file or update the existing file time.
  • A file starting with "." is a hidden file.


4. List contents in the current directory ----- ls
  • -A: displays all files, including hidden files.
  • -L display details
  • -R recursive display subdirectory
  • -Ld: List Directory and link information

5. view files
  • 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 directory ----- cd
  • ".." Upper-level directory
  • "." Current Directory
  • "~" User home directory
  • -"Previous working directory

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


This command

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.