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
Music downloads are off the charts! We're listening to digital... Read More
Logistics automation is often considered as barcoding extension to Sales... 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
NOTE: Please take time to read on - it may... Read More
Usually workflow & messaging is realized in CRM and then... Read More
Accounts payable is just one area of office management where... Read More
Although we don't know whether Microsoft ever envisioned such a... Read More
Most people don't use Photoshop to its fullest capabilities. Here... Read More
I have yet to see a business that, sometimes in... Read More
Considering whether or not your software company should hire a... Read More
Executive SummaryAn effective plan for entering, cleaning and updating the... Read More
Microsoft CRM is CRM answer from Microsoft Business Solutions.The whole... Read More
For a long time now Microsoft's Internet Explorer has ruled... Read More
There are so many different programs that clutter up your... Read More
Introduction To ISDN, Part III: Configuring PPP PAP AuthenticationNow we... Read More
The Internet is reshaping every form of communications medium, and... Read More
The Software 2005 conference is now a wrap. This conference,... Read More
The various resume software offered, particularly on the internet, can... Read More
What is Software?Software is a set of instruction written to... Read More
Formatting and reinstalling windows 98 is very easy if you... Read More
Your computer cost you from hundreds to thousands of dollars,... Read More
Here is some free software tools to help you build... Read More
Microsoft Word is one of the most popular office applications... Read More
Sometimes your PC will start acting strange for no apparent... Read More
same day cleaning service Buffalo Grove ...Professional services firm cuts costs and improves productivity with integrated... Read More
Remember old good days when your company probably had Great... Read More
Simply put, fleet maintenance allows companies to monitor and maintain... Read More
The Windows registry is a huge database that ensures normal... Read More
In our case ? we serve Microsoft Business Solutions ERP... Read More
Now that spyware is the single most dangerous threat to... Read More
The purpose of one of our projects was MS Exchange... 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
This article will not attempt to advocate the use of... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
XML parser is a software module to read documents and... Read More
The most important things you can do for your computer... Read More
Microsoft released Service Pack 2 (SP2) for the Windows XP... Read More
The cornerstone of successful automated office systems is the ability... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics/eEnterprise... Read More
C++ Function templates are those functions which can handle different... Read More
Case study: A secretary using Corel WordPerfect 7 is often... Read More
Spyware is software or hardware installed on a computer without... Read More
It???s easy to understand why you might be drawn to... Read More
Microsoft Great Plains is now targeting large and midsize businesses... Read More
Our company, Novaprof Inc., developed unique software - DB Integration.... Read More
We were recently faced with a decision: either to let... Read More
Are you lost in the mess of documents that get... Read More
The Software 2005 conference is now a wrap. This conference,... Read More
Software |