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
I like my software simple. If it's too complex or... Read More
Great Plains Accounting, accounting package for mid-size and small companies... Read More
Now is the time to look at an alternative to... Read More
Mike Dunville* had a decision to make. As the new... Read More
Internet worms. Is your PC infected?If your computer has become... Read More
Microsoft CRM was designed to be easily customizable. Microsoft CRM... Read More
Program Flow is what you think it is. How the... Read More
As seeing large number of implementations ? in our case... Read More
Microsoft CRM is winning market share step-by-step from such the... Read More
Fundraising software lets you connect with donors in a way... Read More
Microsoft Business Solutions offers several ERP applications: Great Plains, Navision,... Read More
Crystal Reports is the most flexible tool on the market... Read More
If there still are few unprotected computers left, I haven't... Read More
Midsize business or non-profit organization should decide if one-vendor solution... Read More
Here is some free software tools to help you build... Read More
Microsoft Business Solutions CRM is present several years on the... Read More
IntroductionPHP can be used for a lot of different things,... Read More
When you visit department stores and see that majority of... Read More
It is now common thing when large corporation selects mid-market... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
TCO (Total Cost Ownership) is the buzzword in... Read More
Need software to record your voice, streaming audio or musical... Read More
With so many Microsoft Windows related viruses, errors, and other... Read More
It???s easy to understand why you might be drawn to... Read More
Spyware, what it is and what it does. Basically, spyware... Read More
Western Springs shuttle limo ..Let's first look at your ERP system selection (without Retail... Read More
Creating a new markup language.Introduction.General Reuse Markup Langauge, or GRML,... Read More
One of the main reasons business owners and entrepreneurs use... Read More
Imagine something that follows you home and sets itself up... Read More
Table of Contents1) Introduction 2) Related Work 3) Framework 4)... Read More
Microsoft Great Plains, Navision, Solomon and Axapta are Microsoft Business... Read More
We would like to give you several situations, when you... Read More
There are two approaches for application integration:? Programmer's approach ?... Read More
The most important benefit of XML is its simplicity. Though... Read More
The stakes are high when considering security, privacy, and savings,... Read More
As you probably know, when Microsoft purchased Great Plains Software... Read More
Best Software Act! is very popular CRM for small and... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Mike Dunville* had a decision to make. As the new... Read More
Microsoft CRM ? Client Relationship Management package from Microsoft Business... Read More
Microsoft Business Solutions Great Plains, Navision, Axapta, Solomon and CRM... Read More
Microsoft CRM customization techniques are very diversified and based on... Read More
A wiki is an editable text-based website. But you don't... Read More
When Great Plains Software introduced the first graphical accounting application... Read More
If your company has regional and worldwide operations, you might... Read More
Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More
TikiWiki is open source software - it is written in... Read More
Microsoft Business Solutions CRM is now approaching the phase of... Read More
Since its release in 1987, QuarkXpress had made an immediate... Read More
Microsoft has never released a service pack for Windows98 SE,... Read More
Software |