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
Crystal Reports is the most flexible tool on the market... Read More
Our opinion is based on our Microsoft Business Solutions Great... Read More
With the advent of 'Service Pack 2' for Windows XP... Read More
Microsoft CRM is CRM application, maintained and supported by Microsoft... Read More
Handling character strings in Java is supported through two final... Read More
IntroductionSurprised, by the title? well, this is a tour of... Read More
The world of small business accounting software can be a... Read More
Anti-virus software is used to find, remove or fix files... Read More
Are you a database professional? Do you work with a... Read More
What is Software?Software is a set of instruction written to... Read More
When you think... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics... Read More
Language development computer: Computer-based method for aiding language development seems... Read More
Creating a new markup language.Introduction.General Reuse Markup Langauge, or GRML,... Read More
When it comes to screenplay software each screenwriter needs to... Read More
The adware and spyware definitions list is very long. But... Read More
If you copy something from a Web site or elsewhere...... Read More
If you have Great Plains Dynamics/eEnterprise (version 6.0 or earlier)... Read More
According to a survey conducted by InfoTrends/CAP Ventures entitled "Content-Centric... Read More
DBxtra goes ASPGetting to the information hidden within corporate databases... Read More
Microsoft Great Plains, former Great Plains Software Dynamics, eEnterprise has... Read More
Customer Relationship Management, abbreviated "CRM," is the term for a... Read More
Some introduction into Great Plains Software products, now Microsoft Business... Read More
Microsoft CRM is CRM answer from Microsoft and attempt to... Read More
Microsoft Business Solutions Great Plains is very generic accounting application... Read More
Green Bay Hummer H2 SUV rentals ..Every day millions of new web documents emerge on the... Read More
How would you like to prevent spyware and adware from... Read More
While I was preparing some personal background information for a... Read More
Microsoft Great Plains - Microsoft Business Solutions accounting and ERP... Read More
Adware is a type of Spyware program that displays some... Read More
What is Spyware?Spyware monitors your surfing habits and sends the... Read More
Scrapbooks are very popular these days. I think that almost... Read More
The Windows Indexing Service provides you with the ability to... Read More
It is possible that if one avoided all sources of... Read More
Having from five to ten and more favorite screensavers is... Read More
I have always regretted how Microsoft price gouges and rips... Read More
When you buy a computer, it most likely comes with... Read More
Spyware and malware are large problems for Internet users today... Read More
Customer Relationship Management or CRM is a combination of enterprise... Read More
You turn on your computer, and it doesn't look quite... Read More
DBxtra is a powerful query and reporting tool that hides... Read More
Former Great Plains Software Dynamics/eEnterprise, and currently Microsoft Business Solutions... Read More
Viruses and spyware usually show up on your computer one... Read More
Professional services firm cuts costs and improves productivity with integrated... Read More
Before September of 1995, Microsoft ignored the Internet because their... Read More
The various resume software offered, particularly on the internet, can... Read More
One of the main reasons business owners and entrepreneurs use... Read More
What is Tripwire?Tripwire is a form intrusion detection system (IDS)... Read More
In our case ? we serve Microsoft Business Solutions ERP... Read More
Adobe Photoshop is one of the world's leading graphics editing... Read More
Software |