Whenever I open the terminal,
To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details.
appears before the terminal. How do I get that to go away?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
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:
If you want the warning back for whatever reason, remove
Maverick? Comment it out:
sudo vim /etc/bash.bashrc.
The section, commented:
# sudo hint # if [ ! -e "$HOME/.sudo_as_admin_successful" ]; then # case " $(groups) " in *\ admin\ *) # if [ -x /usr/bin/sudo ]; then # cat <<-EOF # To run a command as administrator (user "root"), use "sudo <command>". # See "man sudo_root" for details. # # EOF # fi # esac # fi
Finding the file to start:
$ sudo grep -R "man sudo_root" /etc
/etc/bash.bashrc: See "man sudo_root" for details.
and then scroll though the output until you see which file contains "man sudo_root".