"Linux command line Daquan" series (Ii., navigation)

Source: Internet
Author: User

The navigation of the file system is a continuous process of accessing nodes in the tree structure.

File System Tree

linux only One inverted file system tree

different devices can be mounted on this same tree

Files and subdirectories are part of this tree, the top-most of which is the root directory

Directory

Depending on the relative relationship between tree nodes, there are:

  • Current working directory
    The directory where the user is located
    Delegate symbol:.
    Print path command: pwd
    Back to previous working directory: cd-
  • Home Directory
    The current working directory is set to the primary directory when the system is first logged on or when the terminal emulator is first launched
    For ordinary users, the home directory is the only place where write operations can be performed
    Return root directory: CD
    Returns the home directory for the specified user: Cd~username
  • Parent Directory
  • Sub-directories
Show Directory Contents

ls: Displays the current directory file and directory

Attention:
To. The file that starts with is not displayed by default
-ls can also display other directory contents

Directory Navigation

for auxiliary navigation, Linux provides special symbols:. and.:

. : Current working directory

.. : Current working Directory parent directory

Note:./Can be ignored

Relative path

Route to the specified directory relative to the current working directory

Absolute path

Route to the specified directory relative to the home directory

"Linux command line Daquan" series (Ii., navigation)

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.