Getting started with shell


This section provides an overview of what shell is, and why a developer might want to use it.

It should also mention any large subjects within shell, and link out to the related topics. Since the Documentation for shell is new, you may need to create initial versions of those related topics.

Installation or Setup

A command shell is a command line interface computer program to an operating system.

Some Variants

1. Bash : Comes as default shell on ubuntu

2. KornShell(ksh) :

To install ksh in Ubuntu

   $ sudo apt-get install ksh

To start working with ksh

    $ ksh
    $ ps $$
      4187 pts/2    S      0:00 ksh

Enter the commands at the ksh prompt

3. csh :

To install csh in Ubuntu

    $ sudo apt-get install csh

To work with csh, go to the command line and enter csh

    $ csh

Hello World

At the command prompt:

$ echo "Hello World"


Hello World

To create a script, create a text document with the following content:

echo "Hello World"

Save the script with the name (or any filename) and make the script executable by giving the following permission:

$ chmod 755


$ chmod +x

Run the script:

$ ./


Hello World

To run a local shell script without executable permission:


$ bash
Hello World


$ ksh
Hello World

$ sh
Hello World

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow