The difference between "/" and "~" in Linux system
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.