Home > OS >  Linux, the difference between "/" and "~"
Linux, the difference between "/" and "~"

Time:10-19

"/" is the root directory, "-" is the home directory, Linux is stored in the manner the mount, rather then a tree, the source is "/", namely the root directory, and each user has a "home" directory, which is the user's personal directory, such as the root user's "home" directory is/root, ordinary users a home directory is/home/a. can see



After the user to create, we can see, in the/home directory is the default system created by the user's "home" directory,



/home/a is after the cut to a user's home directory "~"

CodePudding user response:

If compared to a tree, the Linux directory/equivalent to root, to the equivalent of a thick trunk, trunk is different under different user, but they are all under the roots of a tree,

CodePudding user response:

It is recommended that you check the Linux directory structure