Use
The main function of the CD command is to transform the directory
Full Name
The full name of the CD is change Directory
Case
Here are some basic CD command actions ( Blue fonts represent explanations)
[[email protected] ~]# on behalf of username (root), hostname (bigdata), Current path (~, current user's home directory), permission flag bit (#代表root, $ on behalf of ordinary users)
[[Email protected] ~]# CD ~hadoop representative goes to the home directory of the user of Hadoop, that is Home/hadoop
[[Email protected] hadoop]# CD ~ means to return to your home directory, that is/root
[email protected] ~]# CD . To go to the current top-level directory, which is the upper-level directory of/root
[[Email protected]/]# CD- indicates back to that directory (this refers to the previous working directory)
[[email protected] ~]# cd/usr/local indicates to directory/usr/local/
[email protected] local]# CD. /sbin represents the sbin under the relative path/usr/local
"Linux" CD command