In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces what are the differences among su, sudo and sudo-I, which can be used for reference by friends who need them. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
The differences between the three are as follows:
Sudo: temporarily switch to superuser mode to perform superuser privileges. When prompted for a password, the password is the password of the current user, not the password of the superaccount. The disadvantage is that every time you execute the superuser permission, you have to add sudo before the command, and the advantage is that you use sudo at the current terminal and don't enter the password repeatedly (valid only for the current terminal).
Sudo-I: this command can be used to frequently execute certain permissions that only superusers can execute without having to enter a password every time. When prompted for a password, the password is the password of the current account. There is no time limit. After executing the command, the prompt changes to "#" instead of "$". You can execute "exit" or "logout" when you want to return your regular account.
Su: switch to so-and-so user mode, and the password when prompted to enter the password is the password of the account after the switch, and the usage is "su account name". If no account is added, the system defaults to the root account, and the password is also the password of the super account. There is no time limit. It is important to note that you need to switch users with-I when using su so that you can switch with the environment.
Thank you for reading this article carefully. I hope it will be helpful for everyone to share the differences among su, sudo and sudo-I. at the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!
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.