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.
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 $$ PID TTY STAT TIME COMMAND 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 %
At the command prompt:
$ echo "Hello World"
To create a script, create a text document with the following content:
#!/bin/sh echo "Hello World"
Save the script with the name
hello.sh (or any filename) and make the script executable by giving the following permission:
$ chmod 755 hello.sh
$ chmod +x hello.sh
Run the script:
To run a local shell script without executable permission:
$ bash hello.sh Hello World
$ ksh hello.sh Hello World
$ sh hello.sh Hello World