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/
![]() |
|
![]() |
|
![]() |
|
![]() |
Fundraising software lets you connect with donors in a way... Read More
Great Plains Software Dynamics, Dynamics C/S+, eEnterprise were written on... Read More
ERP Consulting industry is on the way to serve clients... Read More
Vince Lombardi once said that, "The achievements of an organization... Read More
Well, even if the combination might look very unusual, we... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
Microsoft Great Plains, former Great Plains Software Dynamics / eEnterprise... Read More
Most computer users use spreadsheets software such as Microsoft Excel... Read More
COMMAND LINE FUNCTIONA powerful command line script processor has been... Read More
IBM Lotus Notes Domino and Microsoft CRM (Client Relation Management)... Read More
Executive SummaryAn effective plan for entering, cleaning and updating the... Read More
Professional services firm cuts costs and improves productivity with integrated... Read More
Follow the steps below to quickly design, generate, and deploy... Read More
Microsoft Great Plains and Microsoft Retail Management System (Microsoft RMS)... Read More
The purpose of Project Management Software is to provide an... Read More
GroupwareEfforts are continually made to manage the unavoidable ad hoc... Read More
The vast majority of us will have, at some point,... Read More
Microsoft SQL Server is the leader for inexpensive and middle... Read More
Customer Relationship Management or CRM is a combination of enterprise... Read More
Microsoft Great Plains, designed back in 1990th as database transferable... Read More
What is IRC?IRC is Internet Relay Chat. It is a... Read More
Ok... Where to start?Well, I guess I will start at... Read More
If you use Microsoft Outlook (or similar applications) for e-mailing,... Read More
The Internet is reshaping every form of communications medium, and... Read More
Manufacturing in the USA is far away down from mid... Read More
In the early days of the personal computer, we're talking... Read More
Remember back in the days where screensavers were the coolest... Read More
People often ask me: What image file formats will Photoshop... Read More
Microsoft Great Plains might be considered as ERP platform to... Read More
What is installation in the language of technology? Installation... Read More
The research in the field of Natural Language Processing usually... Read More
We will base our prognosis on our Microsoft Business Solutions... Read More
How do you run a program on a remote server... Read More
Microsoft CRM and IBM Lotus Notes Domino seem to be... Read More
One of the things we can be as certain of... Read More
The fact that a software tester is a most infamous... Read More
The world of small business accounting software can be a... Read More
Microsoft-Outlook is a pretty amazing program. So much more than... Read More
Research bears that less than 70 percent of development projects... Read More
Microsoft Business Solutions Great Plains serves multiple industries in the... Read More
SyncUp, a file synchronizer is designed to assist the home... Read More
The java programming language is becoming more and more popular... Read More
Google Inc. has launched a new software package that allows... Read More
For a long time now Microsoft's Internet Explorer has ruled... Read More
Programming Help for BeginnersWe write programs to instruct computers. When... Read More
IntroductionSurprised, by the title? well, this is a tour of... Read More
SAP Inc., a global leader in client/server enterprise application software... Read More
Considering whether or not your software company should hire a... Read More
Microsoft CRM is now on the scene and it is... Read More
Not all of us have the luxury of working both... Read More
Scrapbooks are very popular these days. I think that almost... Read More
Introduction to C++Why Learn C++?C++ may at first seem like... Read More
Are you one of those people that keeps track of... Read More
Cyberspace has opened up a new frontier with exciting possibilities... Read More
Running Applications in Compatibility Mode With Windows XP, you can... Read More
Whether you have used Microsoft Word for years, have just... Read More
While I was in college, if you would have asked... Read More
If you are software developer or database administrator - we... Read More
Microsoft CRM is CRM answer from Microsoft and attempt to... Read More
Disclaimer: All the thoughts expressed are my views only! Your... Read More
When my daughter was getting into AOL instant messaging (AIM)... Read More
Microsoft Business Solutions CRM and IBM Lotus Notes Domino, being... Read More
Lotus Domino/Notes ? Microsoft Great Plains tandem as ERP with... Read More
Collaboration SoftwareCollaboration Software, also known as group collaboration software or... Read More
Before being able to choose a secure Internet communication system,... Read More
We'll give you non formal view, based on our consulting... Read More
Software |