Linux Command details cd

Source: Internet
Author: User

Linux Command details cd

Command: cd
Switch the current directory to the target directory

Syntax: # cd [directory name]

Example
1. Go to the/home/doiido directory.

# Cd/home/doiido

View the current directory
# Pwd

2. Go to the doiido directory of the current year.
# Cd doiido

In fact, the above two examples involve relative paths and absolute paths. For more information, see relative paths and absolute paths.

Tips for using cd commands:
# Cd to go to the user's home directory
# Cd ~ Go to the user's home directory
# Cd-Return to the directory (upper-level directory) that is located before the directory is entered)
# Cd .. the parent directory is returned. If the current directory is/, the directory is still in the/directory after execution.

# Cd! $ Use the parameters of the previous command as the cd Parameter

This article permanently updates the link address:

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.