1、cd -
解释:返回上一个目录
Changing to the Previous Directory
Adding a dash symbol (
-) to thecdcommand returns the shell to the previous working directory.For instance, after moving from Downloads to Example_Directory, return to Downloads with: cd -
2、cd ~[username]
解释:更改其他用户的主目录
Changing to Another User's Home Directory
Change to another user's Home directory by adding the tilde symbol (
~) appended with the appropriate username.For instance, changing to the Home directory of a user named alex:cd ~alex