Compare Unix Kernel Shells
This short article talks and compare UNIX kernel shells, which many technical folks are confused of. The Unix operating system used a shell program called theBourne Shell. Then, slowly, many other shell kernel were developed for different flavors of UNIX operating system. The following is some brief information about different shells:
- shBourne shell
- cshC shell
- kshKorn shell
- tcshenhanced C shell
- bashGNU Bourne Again shell (written by Brian Fox)
- zshextension tobash,ksh, andtcsh
- pdkshextension toksh
What we see here is that, generally, the syntax of all these shells is 95% similar.
Tasks done by the shell
- Reading text and parsing the entered command
- Evaluating meta-characters, such as wildcards, special characters, or history characters
- Process io-redirection, pipes, and background processing
- Signal handling
- Initialising programs for execution
Working in the shell :Compare Unix Kernel Shells
- Open the Linux Terminal and type in:
$ echo $SHELL /bin/bash
- The preceding output in the Terminal says that the current shell is/bin/bash, such as the Bash shell:
$ bash -version GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.In Linux, filenames in lowercase and uppercase are different; for example, the filesHelloandhelloare two distinct files. This is unlike Windows, where case doesnot matter. As far as possible, avoid using spaces in filenames or directory names such as:
- Wrong filenameHello World.txt
- Correct filenameHello_World.txtorHelloWorld.txt