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
Microsoft Business Solutions Great Plains was purchased from Great Plains... Read More
Best Software Act! is very popular CRM for small and... Read More
In our opinion, traditional approach when you select ERP/MRP system... Read More
What is IRC?IRC is Internet Relay Chat. It is a... Read More
It's not very often I get excited about a software... Read More
What is Interactive Mapping?Interactive mapping is a visual display medium... Read More
Just the thought of a duel-boot scares many people away,... Read More
Stop the Runaway MouseWhat's the "runaway mouse?" You've seen it...you... Read More
In the case when you represent mid-size or mid-size-to-large business,... Read More
DBxtra is a powerful query and reporting tool that hides... Read More
Adware is a type of Spyware program that displays some... Read More
Music downloads are off the charts! We're listening to digital... Read More
You have gotten those E_Mails buy software at deep discounts.... Read More
Microsoft Great Plains is now targeting large and midsize businesses... Read More
It is now common thing when large corporation selects mid-market... Read More
Microsoft Great Plains is now standard mid-market ERP application, serving... Read More
XML Server can be a Web Server that stores the... Read More
Microsoft Great Plains and Microsoft Retail Management System (Microsoft RMS)... Read More
Are you a whiz at calculating financial information? Not the... Read More
The intentions of this short tutorial are not to teach... Read More
Shareware has been fighting the stigma of being misunderstood for... Read More
Microsoft CRM customization techniques are very diversified and based on... Read More
Homeland security, airport security, Internet security ??" these days we???re... Read More
TCO (Total Cost Ownership) is the buzzword in... Read More
Words we choose to describe things and phenomena often show... Read More
bathroom cleaning service Arlington Heights ...Looks like Microsoft Great Plains becomes more and more popular,... Read More
This is intermediate level SQL scripting article for DB Administrator,... Read More
This article is for advanced Microsoft CRM SDK C# developers.... Read More
It is now common thing when large corporation selects mid-market... Read More
SAP Inc., a global leader in client/server enterprise application software... Read More
Hey Guys! Don't raise your eyebrows or fear by hearing... Read More
Microsoft Business Solutions CRM is web-based CRM application, deploying all... Read More
Homeland security, airport security, Internet security ??" these days we???re... Read More
If there still are few unprotected computers left, I haven't... Read More
Microsoft Great Plains is main accounting / ERP application... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics/eEnterprise... Read More
IBM Lotus Domino or Microsoft Exchange?The severe competition continues for... Read More
Microsoft Business Solutions Great Plains was historically designed to serve... Read More
Microsoft Business Solutions offers several ERP applications: Great Plains, Navision,... Read More
The intuitive algorithm.Roger Penrose considered it impossible. Thinking could never... Read More
Although statistics often is blamed for various deadly sins --... Read More
We live in a post-industrial age where information is the... Read More
Let us give you - developer some hints in the... Read More
Microsoft Business Solutions Great Plains, Solomon, Navision, Axapta, Microsoft CRM... Read More
Microsoft Business Solutions CRM is now approaching the phase of... Read More
Each Industry and market niche has business specific and unique... Read More
Several software companies design programs for preventive maintenance. Most of... Read More
Does Microsoft care for WebmastersIt's always been a problem with... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
ERP Consulting industry is on the way to serve clients... Read More
Software |