Home  >  Article  >  Operation and Maintenance  >  Detailed explanation of the difference between "/" and "~" under Linux

Detailed explanation of the difference between "/" and "~" under Linux

烟雨青岚
烟雨青岚forward
2020-06-24 12:07:126599browse

Detailed explanation of the difference between

Detailed explanation of the difference between "/" and "~" under Linux

"/ " 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 explanation of the difference between / and ~ under Linux

After 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 explanation of the difference between / and ~ under Linux

/home/a is the home directory "~" after switching to user a

Detailed explanation of the difference between / and ~ under Linux

Thanks I hope you will benefit a lot from reading this.

This article is reproduced from: https://blog.csdn.net/lq_kl/article/details/81056241

Recommended tutorial: "Linux Operation and Maintenance"

The above is the detailed content of Detailed explanation of the difference between "/" and "~" under Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete