Cd
"Syntax"cd[directory path]
The "detailed"CD instruction is used to switch between different directories, provided that the account has permission to this directory. If you enter the CD directly and omit the directory name, it is automatically switched to the user's root directory.
Parameters
Options |
corresponding function |
Directory path |
Switches to the specified directory. |
Example
Switch to the/home directory
Execute the following statement in SSH
Cd/home
You can switch to the/home directory, if you want to switch to a subdirectory in the-SSS, the following two ways to switch
First Type: detailed path
Cd/home/sss
The second type: (Under the premise of advanced to/home directory)
CD SSS
Other tips:
1, when the CD is executed, if the directory is not specified, it will be switched to the user root directory.
2, the Implementation CD ~, will be switched to the user root directory.
3, execute CD-, will switch to the previous directory.
Linux Switch working directory command: CD