2

I have been searching but I cannot find where this message is kept:

Terminal window with warning in English

Here is the message as text:

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

I want to translate this message into my language, so others would understand it better. It would give a better first impression.

Quentin
  • 23

1 Answers1

4

This question is related: Remove note about sudo that appears when opening the terminal

You could edit the /etc/bash.bashrc file and manually change the sudo hint text to whatever you like. The relevant section is the following:

# sudo hint
if [ ! -e "$HOME/.sudo_as_admin_successful" ] && [ ! -e "$HOME/.hushlogin" ] ; then
    case " $(groups) " in *\ admin\ *|*\ sudo\ *)
    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