Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After I create a bash script and double click it in Nautilus I am prompted with this - Do you want to run "sleepytime", or display its contents? With Run in terminal, Dislpay, Cancel and Run as options.

enter image description here

Is it possible to just choose "run" or "run in terminal" by default?

share|improve this question
up vote 8 down vote accepted

In Nautilus, choose Edit ▸ Preferences ▸ Behavior ▸ Executable Text Files ▸ Run executable text files when they are opened.

share|improve this answer
gracias @ændrük – winchendonsprings May 5 '11 at 0:59
Can we change the behaviour for a specific file only? – errikos Jan 11 '14 at 18:38
@errikos Not with this method. I'd ask that as a new question with details about your specific needs in case there are alternative solutions you'd find suitable, e.g. a .desktop file linking to your script. – ændrük Jan 11 '14 at 19:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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