Home > Article > Operation and Maintenance > How to enter the home directory in linux
You can use the cd command. The function of the cd command is to switch to the specified directory:
命令格式:cd [目录名]
(Recommended tutorial: linux tutorial)
There are several symbols that have special meanings as directory names:
"/" represents the root directory, ".." represents the upper-level directory, "~" represents the HOME directory, and "-" represents Previous directory
Therefore, you can use the command to return to the HOME directory:
cd ~ //或者 cd /home
Related video tutorial recommendations: linux video tutorial
The above is the detailed content of How to enter the home directory in linux. For more information, please follow other related articles on the PHP Chinese website!