Home >Operation and Maintenance >Linux Operation and Maintenance >What is the difference between '/' and '~' under Linux?

What is the difference between '/' and '~' under Linux?

王林
王林forward
2020-07-17 17:37:163875browse

What is the difference between '/' and '~' under Linux?

"/" is the root directory, "~" is the home directory.

(Recommended tutorial: linux tutorial)

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

What is 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.

What is the difference between / and ~ under Linux?

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

What is the difference between / and ~ under Linux?

The above is the detailed content of What is 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