Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the difference between & quot;/" and & quot;~" under Linux

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Xiaobian to share with you under Linux "/" and "~" what is the difference, I hope you read this article after the harvest, let us discuss it together!

First of all:

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

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

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

After reading this article, I believe you have a certain understanding of the difference between "/" and "~" under Linux. If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 241

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report