Cd
Command description:
Switch to the specified directory
Usage:
Cd [dirName]
Cd [relative or absolute path]
. Indicates the directory at this layer.
.. Indicates the upper directory
-Represents the previous working directory.
~ Represents the main folder where "current user identity" is located
Command practice:
[Root @ bkjia ~] # Absolute path of cd/home/bkjia
[Root @ bkjia] # cd. # No space is added after cd, and an error occurs.
-Bash: cd.: command not found
[Root @ bkjia] # cd.
[Root @ bkjia] # cd... the last directory in the current directory
[Root @ bkjia home] # cd-go to the previous working directory
/Home/bkjia
[Root @ bkjia] # cd
[Root @ bkjia ~] # Cd/home/bkjia
[Root @ bkjia] # cd ~ Go to your home directory
[Root @ bkjia/] # cd/home/bkjia
[Root @ bkjia] # pwd
/Home/bkjia
[Root @ bkjia] # cd... jump to the upper two layers of the current directory
[Root @ bkjia/] #