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/
Program Flow is what you think it is. How the... Read More
Microsoft Business Solutions CRM proved to be reliable solution in... Read More
Imagine something that follows you home and sets itself up... Read More
If you have Microsoft Great Plains as main accounting and... Read More
Microsoft Word is one of the most popular office applications... Read More
While I was preparing some personal background information for a... Read More
Microsoft Business Solutions Great Plains is very good fit for... Read More
In the previous ISDN article, we looked at how and... Read More
Our company, Novaprof Inc., developed unique software - DB Integration.... Read More
Microsoft Great Plains is one of three Microsoft Business Solutions... Read More
Microsoft Outlook is one of the most widely used software... Read More
Using professional icons in your application or website can bring... Read More
SyncUp, a file synchronizer is designed to assist the home... Read More
After almost two decades of existence, Quark has become the... Read More
Just stress testing one of the latest Linux distributions. Been... Read More
IBM Lotus Notes with Domino email server is traditional document... Read More
How many steps does it take you to locate and... Read More
Enabling Chinese input is quick and easy, there are only... Read More
The stakes are high when considering security, privacy, and savings,... Read More
When Great Plains Software introduced the first graphical accounting application... Read More
Buying accounting software is a major investment. It's an important... Read More
Spyware, what it is and what it does. Basically, spyware... Read More
When my daughter was getting into AOL instant messaging (AIM)... Read More
This article is for advanced Microsoft CRM SDK C# developers.... Read More
Before September of 1995, Microsoft ignored the Internet because their... Read More
ERP is the acronym of Enterprise Resource Planning. Multi-module ERP... Read More
What is RAID RECOVERY?RAID stands for Redundant Array of Inexpensive... Read More
You probably didn't casually invite, or extend a formal attendance... Read More
XML Server can be a Web Server that stores the... Read More
When reading an article where some term is used often,... Read More
Internet worms. Is your PC infected?If your computer has become... Read More
The major reason I recommend getting your hands on real... Read More
Combining Microsoft Business Solutions Great Plains ERP with non-Microsoft Business... Read More
Once upon a time not so long ago, there was... Read More
IBM Lotus Domino or Microsoft Exchange?The severe competition continues for... Read More
While several preventive maintenance software manufacturers offer free trials for... Read More
The term "document management" and "paperless office" is the subject... Read More
Microsoft released Service Pack 2 (SP2) for the Windows XP... Read More
Around the same time Microsoft made its move with .Net... Read More
Whether you are an experienced web programmer or a complete... Read More
Microsoft CRM is CRM answer from Microsoft Business Solutions. If... Read More
If you copy something from a Web site or elsewhere...... Read More
If someone entered your home, uninvited and installed numerous cameras... Read More
This tutorial covers OLAP solutions used by Data warehouses and... Read More
This article will not attempt to advocate the use of... Read More
XML Server can be a Web Server that stores the... Read More
Microsoft CRM customization techniques are very diversified and based on... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics... Read More
When you need a phone number, you do a quick... Read More
CD and DVD replication is a process that works by... Read More
It is now common thing when large corporation selects mid-market... Read More
I like my software simple. If it's too complex or... Read More
You might think you don't need a firewall... Read More
When Great Plains Software introduced the first graphical accounting application... Read More
One day, you suddenly realize that your computer started to... Read More
Microsoft Business Solutions Great Plains is very good fit for... Read More
Microsoft SQL Server is the leader for inexpensive and middle... Read More
What is Spyware?Spyware monitors your surfing habits and sends the... Read More
Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More
Microsoft Business Solutions Great Plains, Navision, Axapta, Solomon and CRM... Read More
Currently Microsoft Business Solutions is on the way of creating... Read More
There are several kinds of software piracy. The bottom line... Read More
A few months back I really got sick of my... Read More
Microsoft CRM was designed to be easily customizable. Microsoft CRM... Read More
I have always had a tendency to focus on the... Read More
What is Tripwire?Tripwire is a form intrusion detection system (IDS)... Read More
Software |