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

How to enter the home directory in linux

王林
Release: 2020-03-12 11:57:20
Original
26702 people have browsed it

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 [目录名]
Copy after login

(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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template