Hot search terms: 360 Security Guard Office365 360 browser WPS Office iQiyi Huawei Cloud Market Tencent Cloud Store
The sudo command under Ubuntu is mainly used to increase the authority of the account, which can save time and improve the security of Ubuntu. However, in some cases, the execution of sudo commands under Ubuntu is slow. How to solve this problem?
Here's how:
1. First make sure that the current user can execute sudo
You can check the /etc/sudoer file to see if there is a current user. If not, please contact the administrator or add it through the root user.
2. Check your host name
[root@centos ~]# hostname
centos.6.7
[root@centos ~]#
3. Add your own host name to the /etc/hosts file in the following format:
127.0.0.1 centos.6.7 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
At this point, the problem of slow execution of sudo commands under Ubuntu has been solved. If you use sudo commands to switch users very slowly, you can refer to: What should I do if sudo switching of users is too slow in RHEL 6.0 system?
How to deduct pictures in flash? -Method of flash image deduction
How to export gif animation from flash? -How to export gif animations from flash
How to rotate graphics in flash? -How to rotate graphics in flash
How to return to the previous step in flash? -flash returns to the previous step
How to view hidden files in winrar? -How to view hidden files in winrar
What to do if there is no sound after reinstalling the computer system - Driver Wizard Tutorial
How to practice typing with Kingsoft Typing Guide - How to practice typing with Kingsoft Typing Guide
How to upgrade the bootcamp driver? How to upgrade the bootcamp driver
How to change QQ music skin? -QQ music skin change method
Driver President Download-How to solve the problem when downloading driver software is very slow