“/” is the root directory, “~” is the home directory. Linux storage is mounted, it is equivalent to a tree, and 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 the normal user a is /home/a.
After the user is created, we can see it in the /home directory, which is the “home” directory of the user-created by default.
/home/a is the home directory after cutting to a user “~”