Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/a26f9f83/public_html/articles/includes/config.php on line 159
Intro to UNIX Shells > NetSparsh - Viral Content you Love & Share

Intro to UNIX Shells

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/

In The News:


Engadget

New York City ordered to share code for DNA evidence software
Engadget
Many attempts to open up access to software in the justice system have fallen flat. Advocates in New York, however, have just scored a significant victory. A...

and more »

Employer, parental software may be blocking website
Seattle Times
If the problem persists when connected to a different network, it likely stems from software on that computer — a software firewall, a virtual private network or parental software. If the problem goes away — and especially if the other computer has ...


TechCrunch

Disputed DNA analysis software's code open for inspection after ...
TechCrunch
If you're going to convict or acquit based on evidence provided by a piece of software, you'd better be damn sure that software is reliable. One such program,..

and more »

ProPublica

Federal Judge Unseals New York Crime Lab's Software for Analyzing DNA Evidence
ProPublica
A federal judge this week unsealed the source code for a software program developed by New York City's crime lab, exposing to public scrutiny a disputed technique for analyzing complex DNA evidence. Judge Valerie Caproni of the Southern District of New ...


TechCrunch

What washing dishes, driving a truck and working in a cemetery taught me about the power of 'blue-collar' software
TechCrunch
I don't think this is the usual route to a job in tech and venture capital. But my former work life has opened my eyes to a corner of the technology world I think has the chance to create the next Salesforce, Oracle or LinkedIn: software targeted at ...

and more »

BGR

Google will now pay $1000 for critical software bugs found in popular third-party apps
BGR
With malware creators becoming more aggressive and sophisticated, a number of tech companies in recent years have instituted “bug bounty” programs that provide monetary rewards to any individual or group that uncovers critical vulnerabilities in software.
Google Play Security Reward Program: Bug Bounty Program - Get Rewards through HackerOneHackerOne
Android malware on Google Play adds devices to botnet | Symantec Connect CommunitySymantec
Android Developers Blog: Playtime 2017: Find success on Google Play and grow your business with new Play Console ...Android Developers Blog
Symantec
all 216 news articles »

Bloomberg

Tesla-Like Software Updates Put Dealers' Profit Center at Risk
Bloomberg
The over-the-air software updates Musk pioneered to add features or fix flaws in his electric vehicles are being embraced by more automakers, a potentially grim development for dealers who typically rely on parts and service for as much as half of ...

and more »

Quartz

Facebook treats its ethical failures like software bugs, and that's why they keep happening
Quartz
As the story of Russia, Facebook, and the 2016 US election drags on, Facebook's been quick to open its wallet. It took out full-page ads in both the New York Times and the Washington Post earlier this month to tell the world how it's going to protect ...


Mac Rumors

Eltima Software's Elmedia Player and Folx Infected With Malware
Mac Rumors
The compromised software was discovered on October 19, and customers who downloaded software from Eltima on that date before 3:15 p.m. Eastern Time may be affected by the malware. The following files will be found on an infected system:
Hackers Distribute Malware-Infected Media Player to Hundreds of Mac UsersMotherboard

all 15 news articles »

Financial Times

Kaspersky denies its software can be used for Russian espionage
Financial Times
The founder of Russian cyber security firm Kaspersky Lab denies that Russian security services can use its popular anti-virus software for espionage, claiming ...

and more »
Google News

Microsoft Great Plains PM: Payables Management

Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More

Instant Messenger Clients

If you have been using the Internet for any amount... Read More

Microsoft Great Plains Implementation in Russia ? Overview for Consultant

Microsoft Business Solutions Great Plains is very popular ERP platform... Read More

These Items Are A Must Before Making The Decision To Purchase Any Off-The-Shelf Software

1. What determines the software price? Is it Per Seat... Read More

The Religion And Philosophy Of Small Internet Business

I have always had a tendency to focus on the... Read More

Microsoft Great Plains Customization Recovery & Upgrade for Large Corporation

At the end of XX century, in the late 1990th... Read More

Making The Decision To Automate Your Software Testing

Not every software testing project can or should be automated.... Read More

Basic Steps To Optimize Your Internet Security

After seeing many people complain about their weak Internet security... Read More

How To Identify, Cure and Prevent Spyware/Adware Infections

Just when you thought you were Web savvy, one more... Read More

10 Things You Can Do With Photoshop CS2 That You Couldnt Do Before Now

Is Photoshop CS2 worth the upgrade? You bet it is!... Read More

Benefits of Shareware

Shareware has been fighting the stigma of being misunderstood for... Read More

Editing Your Photos Using Microsoft Picture It Publishing Platinum 2002 - A Great Dinosaur

I started using PIP (Picture It Publishing) Platinum 2002 right... Read More

Adware and Spyware Blockers

The most important things you can do for your computer... Read More

CROOK: A Methodology for the Refinement of Forward-Error Correction

Table of Contents1) Introduction 2) Related Work 3) Framework 4)... Read More

Free PDF Publishing Software

In a previous article, I wrote about OpenOffice... Read More

15 Questions to Ask Your Software Vendor

When making a decision to buy any piece of software... Read More

Assertion in Java

Assertion facility is added in J2SE 1.4. In order to... Read More

Need of Document Management System (DMS)

Document Management or Enterprise Information Management is perhaps one of... Read More

Microsoft CRM Development

Microsoft CRM is CRM answer from Microsoft Business Solutions.The whole... Read More

Selecting Corporate ERP: Microsoft Business Solutions Great Plains ? Estimation Parameters

As we could imagine, if you are reading this article... Read More

Cisco Certification: Introduction To ISDN, Part IV

In part III of this ISDN primer, we learned that... Read More

Mapping Software: Putting Data Visualization on the Map

Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More

Behave, Word, Behave!

If you copy something from a Web site or elsewhere...... Read More

IT Department Skills to Support Microsoft Great Plains and Microsoft CRM

Microsoft Great Plains as ERP and Microsoft CRM as... Read More

Software Development in 2005 - Back to the Future

2005 ? Back to the Future.What does the future hold?... Read More