1. Command format:
CD [Directory name]
2. Command function:
Toggle current directory to DirName
3. Common examples
3.1 Example One: Enter the system root directory
Command:
CD/
Note: Enter the system root directory, the above command after the execution of the LS command to see, the current directory has been to the system root directory
Command:
Cd.. or CD. //
Description
Enter the system root directory to use the CD. "Always back, you can reach the root directory
Command:
Cd.. /.. //
Description: Use the CD command to implement the parent directory into the parent directory of the current directory.
Example 2: Using the CD command to enter the current user home directory
The "Current User home Directory" and "system root" are two different concepts. There are two methods to enter the current user home directory.
Command 1:
Cd
Example 3: Jump to a specified directory
Command:
Cd/opt/soft
Description
Jump to the specified directory, starting from the root directory, the directory name plus/, the current directory in the subdirectory directly write the name can be
Example four: Return to the directory in which it was before entering this directory
Command:
CD-
Example five: Use the parameters of the previous command as CD parameters.
Command:
CD!$
Linux command-CD