Linux Command (1): cd command, linux Command cd

Source: Internet
Author: User

Linux Command (1): cd command, linux Command cd

1. Role: Change the working directory;

2. Format: Cd [path]

The path is the working directory to be changed. It can be a relative path or an absolute path.

3. Use instances: [Root @ www uclinux] # cd/home/yourname/

4. Instructions for use:

This command changes the current directory to the directory of the specified path. If no path is specified, return to the user's home directory. To change to a specified directory, you must have the execution and read permissions on the specified directory.

This command can use wildcards. You can use "cd-" to return to the previous working directory. "./" Indicates the current directory, and "../" indicates the parent directory.


What are the cd and cd/commands in linux?

Cd... is back to the upper-level directory
Cd/is returned to the root directory
Cd. Is the current directory...

In linux, how does the cd command switch the directory?

1. [root @ localhost] # Add "/" to the folder under the root directory when switching cd/usr "/"
2. [root @ localhost] # bin of the folder under cd bin usr
3. [root @ localhost] # combine steps cd/usr/bin 1 and 2 into three.
4. [root @ localhost] # cd/switch to the root directory
5. [root @ localhost] # Switch cd to the current user's directory

[Root @ localhost] # pwd: view the complete path of the current folder

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.