Home  >  Article  >  Operation and Maintenance  >  Detailed introduction to the difference between "/" and "~" under Linux

Detailed introduction to the difference between "/" and "~" under Linux

王林
王林Original
2019-08-23 11:35:372119browse

First of all:

"/" is the root directory, "~" is the home directory. Linux storage is mounted, which is equivalent to a tree shape. The source is "/", which is the root directory. Each user has a "home" directory, which is the user's personal directory. For example, the "home" directory of the root user is /root, and the home directory of ordinary user a is /home/a. You can see

Detailed introduction to the difference between / and ~ under LinuxAfter the user is created, we can see it in the /home directory, which is the user's "home" directory created by the system by default.

Detailed introduction to the difference between / and ~ under Linux

##/home/a is the home directory after switching to user a”~”

Detailed introduction to the difference between / and ~ under Linux##For more related questions, please visit the PHP Chinese website:

linux video tutorial

The above is the detailed content of Detailed introduction to the difference between "/" and "~" under 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