您的位置:首页 > 其它

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

2016-12-10 12:48 204 查看
每次打开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`
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: