Home>Article>Operation and Maintenance> How to enter the home directory in linux

How to enter the home directory in linux

王林
王林 Original
2020-03-12 11:57:20 26584browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn