Get the App
SLTechnology News&Howtos  ›  Servers  › 

The difference between "/" and "~" in Linux system

Shulou Source: shulou.com Published: 2022-06-03 00:42:17 09月22日 Update

This article will explain in detail the difference between "/" and "~" in the Linux system. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

"/" is the root directory and "~" is the home directory. Linux storage is mounted, equivalent to a tree, and the source is "/", that is, the root directory. And every user has a "home" directory, that is, the user's personal directory. For example, the root user's "home" directory is / root, and the ordinary user a's home directory is / home/a. You can see

After the user has been created, we can see it in the / home directory, which is the "home" directory created by the system by default.

/ home/an is the home directory "~" after cutting to a user.

This is the difference between "/" and "~" in the Linux system. I hope the above content can be helpful to everyone and learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Directory user that is the system that is more root directory article good practical ordinary personal content article way source knowledge reference storage help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Tech Info Shulou Information macOS MariaDB