I need to use a beep sound in a shell script as follow:

echo -e '\a'

echo -ne '\007'

But it does not work

What could be the reason?

1 Answer 1


By default the "audible bell" is disabled in Terminal. You can re-enable it by setting org.pantheon.terminal.settings audible-bell to true using dconf editor or the gsettingscommand

  • Thank you! Do you know how to change the sound to one that is more like error? I'm using grunt while development and would like to make it sound like error
    – user60108
    Sep 26, 2015 at 23:46
  • @user60108 That would be a different question. Please submit a new ask Sep 27, 2015 at 0:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.