Linux Switch working directory command: CD

Source: Internet
Author: User
Cd

"Syntax"cd[directory path]
The "detailed"CD instruction is used to switch between different directories, provided that the account has permission to this directory. If you enter the CD directly and omit the directory name, it is automatically switched to the user's root directory.
Parameters

Options corresponding function
Directory path Switches to the specified directory.

Example

Switch to the/home directory

Execute the following statement in SSH

Cd/home

You can switch to the/home directory, if you want to switch to a subdirectory in the-SSS, the following two ways to switch

First Type: detailed path

Cd/home/sss

The second type: (Under the premise of advanced to/home directory)

CD SSS

Other tips:

1, when the CD is executed, if the directory is not specified, it will be switched to the user root directory.
2, the Implementation CD ~, will be switched to the user root directory.
3, execute CD-, will switch to the previous directory.

Linux Switch working directory command: CD

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.