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/
Microsoft Great Plains, Navision, Solomon and Axapta are Microsoft Business... Read More
This is the tutorial where we really get into programming.... Read More
We would like to give you several situations, when you... Read More
Remember old good days when your company probably had Great... Read More
Which Type of Shop Can Rely On A Home Built... Read More
Microsoft-Outlook is a pretty amazing program. So much more than... Read More
Enabling Chinese input is quick and easy, there are only... Read More
Background: For many organizations like ours, the interim target of... Read More
Microsoft Great Plains has full-featured Manufacturing suite of modules: Capacity... Read More
If you have Microsoft Great Plains and support it for... Read More
Case study: A secretary using Corel WordPerfect 7 is often... Read More
Microsoft Business Solutions Great Plains serves to the wide spectrum... Read More
Programming Help for BeginnersWe write programs to instruct computers. When... Read More
Healthcare facilities such as clinics, hospitals, and biomedical laboratories can... Read More
Microsoft Great Plains - Microsoft Business Solutions accounting and ERP... Read More
Microsoft Business Solutions CRM is web-based CRM application, deploying all... Read More
Are you a whiz at calculating financial information? Not the... Read More
How do you run a program on a remote server... Read More
Lotus Domino/Notes ? Microsoft Great Plains tandem as ERP with... Read More
First we had the original Google search that evolved into... Read More
IntroductionSurprised, by the title? well, this is a tour of... Read More
Microsoft Great Plains and Microsoft Retail Management System (Microsoft RMS)... Read More
This article will not attempt to advocate the use of... Read More
The software giants don't do everything and don't always produce... Read More
If your company has regional and worldwide operations, you might... Read More
Passwords protect your most sensitive personal, financial and business information.... Read More
1. What determines the software price? Is it Per Seat... Read More
If you have Microsoft Great Plains and support it for... Read More
Every organization which creates collaborative documents, whether they are budgets,... Read More
Microsoft Business Solutions Great Plains is Dexterity-written application and currently... Read More
Document Management or Enterprise Information Management is perhaps one of... Read More
What is installation in the language of technology? Installation... Read More
Almost all new and major brand of PCs come with... Read More
Are you a database professional? Do you work with a... Read More
Microsoft CRM is CRM answer from Microsoft Business Solutions. If... Read More
The Windows Indexing Service provides you with the ability to... Read More
Microsoft Great Plains, designed back in 1990th as database transferable... Read More
Learning how to program software seems like a daunting task... Read More
Words we choose to describe things and phenomena often show... Read More
If you have Microsoft Great Plains and support it for... Read More
You would like to protect your documents, wouldn't you? Reasons... Read More
COMMAND LINE FUNCTIONA powerful command line script processor has been... Read More
We would like to give you several situations, when you... Read More
Bar charts, bar graphs, and any other chart or graph... Read More
Microsoft Business Solutions Great Plains is very popular ERP platform... Read More
Formatting and reinstalling windows 98 is very easy if you... Read More
Homeland security, airport security, Internet security â?" these days weâ??re... Read More
Configuring PPP PAP AuthenticationNow we know how the ISDN link... Read More
Microsoft Great Plains ? ERM from Microsoft Business Solutions and... Read More
IBM Lotus Domino or Microsoft Exchange?The severe competition continues for... Read More
Microsoft Great Plains is becoming more and more popular and... Read More
The Software 2005 conference is now a wrap. This conference,... Read More
When reading an article where some term is used often,... Read More
Scrapbooks are very popular these days. I think that almost... Read More
In the case when you represent mid-size or mid-size-to-large business,... Read More
Collaboration SoftwareCollaboration Software, also known as group collaboration software or... Read More
Imagine something that follows you home and sets itself up... Read More
Does Microsoft care for WebmastersIt's always been a problem with... Read More
Microsoft CRM ? Client Relationship Management package from Microsoft Business... Read More
In our case ? we serve Microsoft Business Solutions ERP... Read More
The adware and spyware definitions list is very long. But... Read More
For those who still don't know, Microsoft Publisher helps computer... Read More
If you look back to the history, you will see... Read More
Microsoft Business Solutions Great Plains serves to the wide spectrum... Read More
Whether you need to close a sale, gather end-user feedback,... Read More
We all already got used to computer monitoring both at... Read More
Software |