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
The first thing that you will notice about Linux Red... Read More
Microsoft Business Solutions Great Plains is Dexterity-written application and currently... Read More
Microsoft Word is one of the most popular office applications... Read More
With many manufacturing shops heading over seas in favor of... Read More
We've all seen the ads on TV for Netzero 3G.... Read More
Since Version 8.0 Microsoft Business Solutions Great Plains & Great... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
During the years of our consulting practice, which comes back... Read More
An integral part of any quality CRM system is lead... Read More
Microsoft Business Solutions ? Great Plains is designed to meet... Read More
MSN messenger is a pretty cool invention. I mean I'm... Read More
Great Plains Fixed Assets Management module is a robust tool... Read More
If there still are few unprotected computers left, I haven't... Read More
Microsoft CRM is CRM answer from Microsoft Business Solutions. If... Read More
You turn on your computer, and it doesn't look quite... Read More
Not all of us have the luxury of working both... Read More
Our opinion is based on our Microsoft Business Solutions Great... Read More
It is really interesting that a bug can create problem... Read More
Costs of fleet maintenance software can vary widely. It is... Read More
In 2004 Oracle, Inc. made its new step toward J2EE... Read More
As of now - Great Plains Dynamics/eEnterprise is transformed/renamed into... 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
Scrapbooks are very popular these days. I think that almost... Read More
In our small article we'll consider Microsoft Business Solutions Great... Read More
reliable maid service Highland Park ..It's all about turn times in the eMedia industry! The... Read More
Now there are Three Steps To Heaven Just listen and... Read More
Learning how to program software seems like a daunting task... Read More
While Ukraine is becoming a new popular IT outsourcing destination,... Read More
This article will not attempt to advocate the use of... Read More
GroupwareThe internet is full of 1.5 million to 7 million... Read More
Looks like Microsoft Great Plains becomes more and more... Read More
Microsoft Business Solutions main middle market ERP application - Microsoft... Read More
Domino server is a buffer between the operation system and... Read More
.Net Framework is a platform or development environment to seamlessly... Read More
Healthcare facilities such as clinics, hospitals, and biomedical laboratories can... Read More
Just stress testing one of the latest Linux distributions. Been... Read More
Should one use Windows Update?This topic has good and valid... Read More
What is IRC?IRC is Internet Relay Chat. It is a... Read More
Microsoft Business Solutions Great Plains serves to the wide spectrum... Read More
For those who are unclear on the differences between the... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Heard about the Quark "killer"?Adobe InDesign CS2. Will it really... Read More
Is your PC is slow and wimpy? Then you need... Read More
You've finally created databases that you can actually use to... Read More
Microsoft Business Solutions CRM is present several years on the... Read More
Rapid Application Development (RAD) is a software development methodology. In... Read More
It's not very often I get excited about a software... Read More
In our small article we'll consider Microsoft Business Solutions Great... Read More
Great Plains Inventory Management (IV) module gives your business a... Read More
Software |