红联Linux门户
Linux帮助

Ubuntu terminal一直提示使用sudo执行命令

发布时间:2016-12-11 09:20:13来源:linux网站作者:lxbwolf
每次打开Terminal,窗口上方都会出现:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
 
解决方法:
Once you run a sudo command, the file ~/.sudo_as_admin_successful will be created and the warning will Go away. So either run a sudo command, such as sudo apt-get update or create the ~/.sudo_as_admin_successful file manually:
touch ~/.sudo_as_admin_successful
If you want the warning back for whatever reason, remove ~/.sudo_as_admin_successful
do grep -R “man sudo_root” /etc`
 
本文永久更新地址:http://www.linuxdiyf.com/linux/26785.html