A UNIX Shell is in simplest terms, a command line interpreter, that takes the users input and gives it to the Kernel. If you are familiar with DOS, you will remember the 'command.com' that file takes the users information and passes it to the operating system in a way it can be understood by the system. With DOS you only had one type of shell, but with UNIX you have a variety, each with their own abilities, pluses and minuses.
Keep in mind as you read about these shells, that though they may have major differences when they were created, that they have been updated and many features that were once only available in a single shell, may be available in other shells. This is more of a history lesson.
'sh'
The Bourne shell, named after its creator Steve Bourne is the oldest shell for most major distributions of UNIX and LINUX. Most shells today are in some fashion derived from the Bourne shell.
'csh'
The C Shell. The C shell is a great shell that has many advantages over the original Bourne shell, it was the first to introduce a history (the ability to scroll up, to view past commands). Also the C Shell as the name implies also integrates a great portion of the C programming language. If you are able to program in C, you can pretty much do it all in a shell script or from the command line, if you so desired.
'ksh'
The Korn Shell. Named after its creator David Korn. This shell is able to do most of the things both the Bourne, and C Shell can do, and improves on them. For instance, the history feature is available, plus you are able to call up the history, edit the command, and then re-run it.
'bash'
The Bourne-Again Shell. This is probably the most widely used shell to date, and is the default shell for most newer Linux distributions. Again it integrates most of the above features and improves upon them. It was developed by the Free Software Foundation.
There are many other shells out there, but chances are if you are using a UNIX style operating system, you are using one of the above mentioned shells. My personal favourite is the bash shell, which also happens to be the first one I was exposed towards, so I may be biased. However typically when shell scripting, I use the korn shell because of its programming friendly structure.
How do you know what UNIX shell I am using?
Type "ps" and then hit return at your shell prompt and you should get something similar to:
$ ps
PID TTY TIME CMD
13087 pts/1 00:00:00 bash
13121 pts/1 00:00:00 ps
The numbers under PID, TTY, TIME etc should all be different from machine to machine, and the number of lines of programs running may also. But one line you have will be probably "bash" "csh" "sh" "ksh".
Another way to check is to type the following:
grep your-user-name /etc/passwd (eg grep ken /etc/passwd)
Which will return you something along the lines of:
ken:x:501:501:Ken:/home/ken:/bin/bash
The last portion of that line is '/bin/bash' which tells you your default shell when you login.
Ken Dennis
Ken.Dennis@Gmail.com
http://KenDennis-RSS.homeip.net/
![]() |
|
![]() |
|
![]() |
|
![]() |
FTP stands for "file transfer protocol". FTP is basically a... Read More
In this small article we will show you the possible... Read More
CD and DVD replication is a process that works by... Read More
The software giants don't do everything and don't always produce... Read More
Bad News - the Threat is Bigger than it SeemedHow... Read More
Now is the time to look at an alternative to... Read More
In our small article we'll consider Microsoft Business Solutions Great... Read More
Shareware has been fighting the stigma of being misunderstood for... Read More
The stakes are high when considering security, privacy, and savings,... Read More
Considering whether or not your software company should hire a... Read More
Introduction To ISDN, Part III: Configuring PPP PAP AuthenticationNow we... Read More
Task Manager is a Windows system utility that displays thetasks... Read More
SyncUp, a file synchronizer is designed to assist the home... Read More
The most important things you can do for your computer... Read More
With the advent of 'Service Pack 2' for Windows XP... Read More
Microsoft Business Solutions Great Plains serves to the wide spectrum... Read More
I suggest that you do not spend a lot of... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Microsoft Business Solutions products: Great Plains, MS CRM, Navision, Axapta,... Read More
The first thing that you will notice about Linux Red... Read More
What is Tripwire?Tripwire is a form intrusion detection system (IDS)... Read More
Microsoft Business Solutions Navision is main ERP application for European,... Read More
Did you ever give a thought to the number of... Read More
Microsoft Business Solutions Navision serves both European and American megamarkets.... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics/eEnterprise... Read More
Microsoft Business Solutions Great Plains was designed back in the... Read More
Great Plains Software Dynamics, Dynamics C/S+, eEnterprise were written on... Read More
Microsoft Business Solutions ? Navision is an integrated solution for... Read More
Most people don't use Photoshop to its fullest capabilities. Here... Read More
What is a Web Database?A web database is a database... Read More
Microsoft Business Solutions CRM is now approaching the phase of... Read More
When you visit department stores and see that majority of... Read More
Hi, Guys,I believe a lot of programmers are trying to... Read More
The COSMIC FP (function point) software quality metric, is no... Read More
While paper labeling CDs and DVDs may appear to be... Read More
During the years of our consulting practice, which comes back... Read More
Microsoft Office program is a programming tool called Visual Basic... Read More
Creating a new markup language.Introduction.General Reuse Markup Langauge, or GRML,... Read More
How to delete the user? This is the first problem... Read More
As seeing large number of implementations ? in our case... Read More
Microsoft Great Plains could be tuned and setup to fit... Read More
The purpose of one of our projects was MS Exchange... Read More
CD and DVD replication is a process that works by... Read More
With so many Microsoft Windows related viruses, errors, and other... Read More
Microsoft Business Solutions Great Plains has several options to enable... Read More
Blue Cross and Blue Shield of Hawaii (HMSA) found itself... Read More
The Windows registry is a huge database that ensures normal... Read More
What is Colossus?Colossus is software licensed to about twenty-five insurance... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Spyware and Adware infest over 90 percent of computers in... Read More
Anyone who has ever used Microsoft Word knows that it... Read More
Spyware, what it is and what it does. Basically, spyware... Read More
SOFTWARE PIRACY We regularly hear reports... Read More
XML Server can be a Web Server that stores the... Read More
This is the tutorial where we really get into programming.... Read More
Many reasons made GBM a unanimous choice for experts, one... Read More
If you have Microsoft Great Plains as main accounting and... Read More
Programming Help for BeginnersWe write programs to instruct computers. When... Read More
OEComplete is a utility for managing the personal information of... Read More
Traditionally we were considering functionally rich systems, such as SAP,... Read More
Finding the best spyware removers to detect and remove spyware... Read More
The cornerstone of successful automated office systems is the ability... Read More
It is possible that if one avoided all sources of... Read More
C/SIDE (Client/Server Integrated Development Environment) - The core of... Read More
Microsoft Business Solutions Great Plains version 8.5, 8.0, 7.5, Great... Read More
Software |