Which shell is shipped on default installs?
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?
Solution 1:
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.
Solution 2:
yes, it is bash
. To run a script you have to type ./script_name
or sh script_name