In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail what the linux home directory refers to. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
In linux, the home directory is the user's home directory, which can be represented by "~"; when adding users, you can specify the home directory, different users, the home directory may be different, you can use the "cd ~" command to return to the home directory.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
What is the home directory of linux
The Linux home directory is the user's home directory, which is specified when you add the user. Home directories are different for different users. ~ represents the home directory in Linux. Enter the cd ~ command in the terminal to return to the home directory, as long as there is a user directory.
Directory is a special file that the Linux system organizes files.
The user home directory is created by the system administrator when he adds users (which can be changed later). Each user has his own home directory, and the home directories of different users are generally different.
When a user first logs in to the system, its working directory is the user's home directory, usually the same as the user's login name.
Users can refer to their own home directory with a ~ character.
For example, commands
/ home/WANG\ $cat ~ / class/software_1
And the following command
/ home/WANG\ $cat / home/WANG/class/software_1
It means the same thing. Shell will replace the ~ character with the user's home directory name. After the directory hierarchy is created, the user can put the relevant files into the corresponding directory, thus realizing the organization of the files.
This is the end of the article on "what the linux home directory refers to". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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: 0
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.