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
[email protected]
http://KenDennis-RSS.homeip.net/

In The News:

This RSS feed URL is deprecated, please update. New URLs can be found in the footers at https://news.google.com/news

The Verge

Huawei Mate 10 Pro review: software sadness
The Verge
We're less than two months into 2018, and so far, the year hasn't been very good for Huawei. The Chinese company had hoped that this would be the year when it would finally be able to break into the US market and compete with Apple and Samsung. But ...
Hands-on with the $800 US model Huawei Mate 10 Pro: Fantastic hardware, software still needs workZDNet

all 5 news articles »

Moneycontrol.com

UPDATE 1-Indian software services sector to grow 7-9 pct in FY19 - lobby group
Reuters
HYDERABAD, India, Feb 20 (Reuters) - India's software services exports will see revenue growth of 7-9 percent in constant currency terms in the fiscal year to March 2019, a leading lobby group forecast on Tuesday, as the industry continues to recover ...
Indian software services sector to grow 7-9% in FY19: Lobby groupMoneycontrol.com
Indian software services growth to remain flat at 7-9% in FY19 too: NasscomBusiness Standard

all 9 news articles »

The Guardian

Vodafone pilots new software to thwart rogue drones
The Guardian
A drone carries medical supplies to King's College Hospital in south London. Photograph: David Parry/PA. Vodafone is testing technology to track and control drones to let authorities protect aircraft from accidents and terrorist attacks and stop ...

and more »

Forbes

The Best Tax Software
Forbes
Our budget pick, TaxAct Tax Software, is a great alternative. However, it's less intuitive and is geared toward those who already have a good working knowledge of filing taxes. Although it's less expensive, this pick offers solid security and is a ...


Washington Post

In our eyes, Google's software sees heart attack risk
Washington Post
By looking at the human eye, Google's algorithms were able to predict whether someone had high blood pressure or was at risk of a heart attack or stroke, Google researchers said Monday, opening a new opportunity for artificial intelligence in the vast ...
Google's software can predict whether you're at risk of a heart attack by looking at your eyesSouth China Morning Post
Google's eye-scanning software predicts heart attack riskPekin Daily Times
Prediction of cardiovascular risk factors from retinal fundus photographs via deep learning | Nature Biomedical ...Nature
The Verge
all 43 news articles »

Bloomberg

Daimler Downplays Report on Rigged US Emission-Test Software
Bloomberg
Daimler AG sought to play down a newspaper report that its own engineers questioned the legality of software used to control diesel equipment in its vehicles, saying U.S. authorities knew about the allegations and haven't taken action. Documents ...
Daimler included emissions-cheating software on diesels, German magazine saysArs Technica
Daimler may have used software to cheat on US emissions testsEngadget
Software may have helped Daimler pass US emissions tests: reportReuters
Nasdaq -Automotive News (blog) -Fiji Times -Phys.Org
all 74 news articles »

The Register

KFC: Enemy of waistlines, AI, arteries and logistics software
The Register
Brits suffering through the nationwide KFC famine can enjoy with wry amusement the fact that an AI can be fooled into thinking an image of Colonel Sanders and the restaurant's logo are a stop sign. The fast food famine arose after KFC UK last week ...

and more »

Los Angeles Times

Toyota Prius software fix may reduce fuel efficiency, experts say
Los Angeles Times
Assertions that the Toyota software change decreased the car's fuel economy are contained in a lawsuit seeking class-action status filed this month in U.S. District Court in Los Angeles. "Unbeknownst to drivers, Toyota reduced the vehicles' fuel ...


Constellation Software Announces Appointment of Robin van Poelje to its Board of Directors
GlobeNewswire (press release)
TORONTO, Feb. 19, 2018 (GLOBE NEWSWIRE) -- The board of directors of Constellation Software Inc. (“Constellation”) (TSX:CSU) announced today the appointment of Robin van Poelje to the Company's Board of Directors. Mr. van Poelje is the founder and ...

and more »

PR Newswire (press release)

Epson Announces Projector Control Software to Easily Manage Multiple Projectors Simultaneously
PR Newswire (press release)
With the new EPPT software, we offer an easy tool for users to set up and execute unique projection applications," said Ramzi Shakra, product manager, large venue projectors, Epson America, Inc. "This new tool is intuitive to use and will allow our ...

and more »
Google News

Is Your Computer Sick?

Viruses and spyware usually show up on your computer one... Read More

Perfectly New Database Query Tool - Foxy SQL Pro Released

Are you a database professional? Do you work with a... Read More

Who?s Watching What You Type?

If someone entered your home, uninvited and installed numerous cameras... Read More

How to Choose the Right Accounting Software for Your Business

With any good luck and a good amount of hard... Read More

MySQL for Beginners ? How to Create a MySQL Database

Whether you are an experienced web programmer or a complete... Read More

Are You Waiting for Microsoft Longhorn Operating System

I love new technology. I am still ready to wait... Read More

Microsoft Business Solutions Products Selection: ERP, CRM, Retail Management

Let's first look at your ERP system selection (without Retail... Read More

Fleet Maintenance Software Reviews

Innovative Maintenance Systems (IMS) is one company that offers solutions... Read More

Microsoft Great Plains Multicurrency ? Overview For Implementation Consultant

When you first think about multicurrency ? you probably have... Read More

Should I Use Windows Update?

Should one use Windows Update?This topic has good and valid... Read More

Microsoft Great Plains Oil & Gas ? Implementation & Customization Highlights

Microsoft Great Plains serves the wide spectrum of horizontal markets.... Read More

Microsoft Great Plains Customization Recovery & Upgrade for Large Corporation

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

Microsoft Great Plains Dynamics on Pervasive SQL.2000 Data Repair ? Overview For DBAs

Some introduction into Great Plains Software products, now Microsoft Business... Read More

C++ Tutorial 2, Input and Variables

This is the tutorial where we really get into programming.... Read More

Putting Screensavers Under Control

No matter how much you enjoy your favorite screensavers, sometimes... Read More

Introducing GRML

Creating a new markup language.Introduction.General Reuse Markup Langauge, or GRML,... Read More

New SQL Delta Version 3.1

COMMAND LINE FUNCTIONA powerful command line script processor has been... Read More

Microsoft CRM Lotus Notes Domino Connector FAQ

Microsoft Business Solutions CRM and IBM Lotus Notes Domino, being... Read More

Microsoft Great Plains Partner Selection: Overview

Microsoft Great Plains, Navision, Solomon and Axapta are Microsoft Business... Read More

Linux ? Keyboard Or Mouse

Just stress testing one of the latest Linux distributions. Been... Read More

.NET :Solving the Multiple Inheritance Issue Under .NET Platform

.NET platform does not support multiple inheritance. Do not confuse... Read More

Microsoft CRM Implementation & Remote Support

We would like to give you pluses and minuses of... Read More

The Software 2005 Conference - A Review

The Software 2005 conference is now a wrap. This conference,... Read More

Integrating Microsoft Great Plains Accounting/ERP: RMS, CRM, eCommerce, Lotus Domino ? overview

Microsoft Business Solutions Great Plains has substantial market share among... Read More

Microsoft Great Plains: carpet, textile, fabric, felt distributor ? implementation overview

In this small article we will show you the possible... Read More