In Linux, the CD command is a frequently needed instruction, and the CD command allows us to switch freely in the directory, if you need to switch to the root directory, the commands are as follows:
[Root@localhost ~]# CD/
[Root@localhost/]#
Here are some tips for using the CD command
Switch home directory in any directory
[Root@localhost/]# CD
[Root@localhost ~]#
Of course, you can also use CD to return to the home directory
[Root@localhost local]# CD ~
[Root@localhost ~]#
Go back to the previous directory
[Root@localhost ~]# CD-
usr
[Root@localhost local]#
In addition, there are two ways to switch home directory, using absolute and relative paths, respectively
[Root@localhost local]# Cd/root
[Root@localhost ~]#
[Root@localhost/]# CD root
[Root@localhost ~]#
The general user's directory is in the following path
/root Root User Directory
/home/userhttp://www.aliyun.com/zixun/aggregation/11696.html ">name Common User Directory
Common configuration files are stored in the following directory
etc
The kernel boot file is in the following directory
Boot