Linux Learning Note (4): cd command

Source: Internet
Author: User

The CD command is one of the most commonly used commands in Linux, and I think the other should be LS (follow-up introduction). The main function is to jump to the CD command to specify the directory.

CD command format: CD [-l|-p] [dir]

Common CD Commands:

1. Jump to the specified directory: cd dir

Dir can be either an absolute path or a relative path.

Dir/That is, jump to the root directory. Www.2cto.com

Dir is also a wildcard, such as CD * CD a*b CD a*/p* and so on.

2. Skip to Home directory: CD or CD ~

3. Skip to the previous level: CD.

4. Jump to the last directory: CD-

such as: Cd/home/test/test1 at this time under the/home/test/test1

The CD is now under root

CD-Now back under the/home/test/test1

5. Jump to the location indicated in the previous command: CD!$

Use the parameters of the previous command as the CD directory

Linux Learning Note (4): cd 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.