Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Recently started playing with Ubuntu. I am playing with few shell scripts written for Korn Shell that I want to edit in Ubuntu. What shell does Ubuntu runs on? I guess its Bash? If it is, then is there any way to install or run a particular script under a particular shell?

share|improve this question
up vote 8 down vote accepted

The default scripting shell (/bin/sh) is dash. The default interactive shell (/bin/bash) is bash. When using scripts on Ubuntu that are using /bin/sh you may need to avoid various "bashisms", like arrays or {}-style globbing.

share|improve this answer

yes, it is bash. To run a script you have to type ./script_name or sh script_name

share|improve this answer
Hi Pawel, Can I run a script written from ksh under bash? – t3ch Nov 16 '10 at 19:50
well, a lot ksh scripts will run without any problems under bash. You simply have to try :) before running a script, it may be necessary to execute command: chmod +x script_name – Paweł Karpiński Nov 16 '10 at 19:57
But is it possible to install any other shell? – t3ch Nov 16 '10 at 21:14
"sh" is a symlink to dash, so "sh script_name" should be "bash script_name" if you want to use bashisms. – Kees Cook Nov 16 '10 at 21:30
Yes, you can install any shell you want. Just use sudo aptitude install ksh – Cody Harlow Nov 16 '10 at 21:47

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.