Linux file and directory operations basic commands: CD command

Source: Internet
Author: User
Keywords LINUX CD commands Directory operations
Tags access basic basic commands cd command cd commands change directory directory operations

cd command to change the working directory. For example:

Command

function

CD ~

Will send you back to your login directory.

CD/

Take you to the root of the system

Cd/root

Take you to the root user's home directory; You must be the root user to access the directory

Cd/home

Take you to the home directory where the user's login directory is usually stored

CD.

Move up a directory

Cd/dir1/subdirfoo

No matter which directory you are in, this absolute path will take you directly to the Subdirfoo, the Dir1 subdirectory.

CD. /.. /dir3/dir2

This relative path will move you up two levels, switch to the root directory, then go to dir3 and go to the DIR2 directory.

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.