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/
|
|
|
|
|
|
|
|
|
|
|


The java programming language is becoming more and more popular... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
When reading an article where some term is used often,... Read More
(1) Avoid using the same variable again and again for... Read More
If someone entered your home, uninvited and installed numerous cameras... Read More
The first thing that you will notice about Linux Red... Read More
The objective for Zandi Digital is to make available clever... Read More
IBM Lotus Notes Domino and Microsoft CRM (Client Relation Management)... Read More
As seeing large number of implementations ? in our case... Read More
This article is for advanced Microsoft CRM SDK C# developers.... Read More
Most computer users use spreadsheets software such as Microsoft Excel... Read More
If you use Microsoft Outlook (or similar applications) for e-mailing,... Read More
Microsoft Great Plains is becoming more and more popular and... Read More
There are two major WYSIWYG(What You See Is What You... Read More
Microsoft Business Solutions Great Plains has several options to enable... Read More
It's no secret that software companies operate in a very... Read More
Almost all new and major brand of PCs come with... Read More
If you are in a business that passes documents around... Read More
Microsoft Word is one of the most popular office applications... Read More
I like my software simple. If it's too complex or... Read More
When you first think about multicurrency ? you probably have... Read More
If you look back to the history, you will see... Read More
While Adobe is the most known maker of PDF tools,... Read More
A LOT OF UNWANTED FILES.When you uninstall an item of... Read More
Microsoft Great Plains is main mid-market application from Microsoft Business... Read More
Writing software manuals is boring, isn't it? We often think:... Read More
Running Applications in Compatibility Mode With Windows XP, you can... Read More
Language development computer: Computer-based method for aiding language development seems... Read More
Stop the Runaway MouseWhat's the "runaway mouse?" You've seen it...you... Read More
I have always regretted how Microsoft price gouges and rips... Read More
For a windows user like me, just can watch with... Read More
Microsoft released Service Pack 2 (SP2) for the Windows XP... Read More
Microsoft Business Solutions is emerging as very attractive vendor for... Read More


As we could imagine, if you are reading this article... Read More
All your software is stored on a hard-drive. But how... Read More
IntroductionSurprised, by the title? well, this is a tour of... Read More
Accounts payable is just one area of office management where... Read More
How to delete the user? This is the first problem... Read More
New post-recession era has new features, which didn't exist in... Read More
Remember old good days when your company probably had Great... Read More
Security flaws have long plagued Internet Explorer (IE), the market-dominating... Read More
While several preventive maintenance software manufacturers offer free trials for... Read More
SyncUp, a file synchronizer is designed to assist the home... Read More
If your company has regional and worldwide operations, you might... Read More
Microsoft Great Plains is now targeting large and midsize businesses... Read More
Anyone who has ever used Microsoft Word knows that it... Read More
The adware and spyware definitions list is very long. But... Read More
Enabling Chinese input is quick and easy, there are only... Read More
Microsoft Great Plains - Microsoft Business Solutions accounting and ERP... Read More
Small can be beautiful! Working with Knoppix for the past... Read More
Microsoft Business Solutions Great Plains was purchased from Great Plains... Read More
With this small article we are continuing Microsoft Business Solutions... Read More
Crystal Reports is the most flexible tool on the market... Read More
The vast majority of us will have, at some point,... Read More
Whether you need to close a sale, gather end-user feedback,... Read More
When reading an article where some term is used often,... Read More
After almost two decades of existence, Quark has become the... Read More
Internet worms. Is your PC infected?If your computer has become... Read More
During the years of our consulting practice, which comes back... Read More
User interfaces and accessibility are some of the most important... Read More
Lotus Notes Domino is very efficient in electronic document workflow... Read More
C/SIDE (Client/Server Integrated Development Environment) - The core of... Read More
Imagine something that follows you home and sets itself up... Read More
Each Industry and market niche has business specific and unique... Read More
Disclaimer: All the thoughts expressed are my views only! Your... Read More
Now there are Three Steps To Heaven Just listen and... Read More
Software |