Two important options for Linux-cd commands

Source: Internet
Author: User
Two important options of the Linux-cd command-Linux general technology-Linux technology and application information. The following is a detailed description. First Command: cd or cd ~ It is used to bring users back to their "root" directory. Eg. the root user calls cd or cd ~ Then use pwd to view the current working directory. The result is:/root. If I create a user pcwlno1 on Linux, no matter when I call cd or cd ~ I will return to/home/pcwlno1;

The second command: cd-this command allows you to return to the previous working directory. For example, I just jumped from/home/pcwlno1/eclipse/workspace to/usr/sbin/local/pppd. When I want to return to/home/pcwlno1/eclipse/workspace again, there is no need to call cd/home/pcwlno1/eclipse/workspace.

Cd. In this way, less physical labor can be done!

Give it a try.
Related Article

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.