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
ken.dennis@gmail.com
When my daughter was getting into AOL instant messaging (AIM)... Read More
Internet worms. Is your PC infected?If your computer has become... Read More
It's all about turn times in the eMedia industry! The... Read More
It's no secret that software companies operate in a very... Read More
Microsoft Great Plains might be considered as ERP platform to... Read More
The intentions of this short tutorial are not to teach... Read More
The intuitive algorithm.Roger Penrose considered it impossible. Thinking could never... Read More
Before September of 1995, Microsoft ignored the Internet because their... Read More
Now there are Three Steps To Heaven Just listen and... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Using professional icons in your application or website can bring... Read More
For those who are unclear on the differences between the... Read More
It???s easy to understand why you might be drawn to... Read More
eStore Advantage allows front-office applications to communicate with back-office business... Read More
Microsoft Business Solutions CRM is present several years on the... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
If you feel intimidated when someone tries to teach you... Read More
For a windows user like me, just can watch with... Read More
So, why should you use any O/R mapping tool? I... Read More
No matter how much you enjoy your favorite screensavers, sometimes... Read More
Lotus Domino/Notes ? Microsoft Great Plains tandem as ERP with... Read More
MSN messenger is a pretty cool invention. I mean I'm... Read More
Several software companies design programs for preventive maintenance. Most of... Read More
"Pfishing", sometimes spelled "Phishing", is a word that's used to... Read More
limousine Chicago airport Arthur ..Great Plains Software Dynamics, Dynamics C/S+, eEnterprise were written on... Read More
The major reason I recommend getting your hands on real... Read More
Microsoft Business Solutions Great Plains has Project Accounting module where... Read More
What is Groupware?Have you ever had to manage document collaboration... Read More
Just the thought of a duel-boot scares many people away,... Read More
Microsoft Business Solutions is now in process of creating so... Read More
Microsoft Great Plains is main accounting / ERP application... Read More
Are you a database professional? Do you work with a... Read More
Some companies that are in need of fleet management may... Read More
Microsoft Great Plains serves the wide spectrum of horizontal markets.... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
Microsoft CRM was designed to be easily customizable. Microsoft CRM... Read More
Manufacturing in the USA is far away down from mid... Read More
Microsoft CRM is CRM answer from Microsoft Business Solutions.The whole... Read More
When you double-click a layer in the Layer Palette, you... Read More
While Ukraine is becoming a new popular IT outsourcing destination,... Read More
Microsoft Great Plains is one of the Microsoft Business Solutions... Read More
Microsoft Business Solutions Great Plains has full-featured manufacturing set of... Read More
Microsoft Business Solutions Navision serves both European and American megamarkets.... Read More
One of the main reasons business owners and entrepreneurs use... Read More
Software development is a risky business.Many software developers are barely... Read More
A LOT OF UNWANTED FILES.When you uninstall an item of... Read More
I have recently created my first Php program. I wanted... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Most people understand that the "hardware" part of their computer... Read More
Software |