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

TechCrunch

Clubhouse nets $10m Series A from Battery Ventures to make software development fun again
TechCrunch
People often describe work as a rat race, but for a lot of engineers, that isn't too far off. Take one Jira ticket off the queue, fix the bug or add the feature, mark the ticket as complete and move as quickly as possible to the next ticket ...

and more »

Forbes

Generous 401(k) Matches Helped Scott Scherr Build The Ultimate Software Stock
Forbes
Over the past decade, few companies have performed as well as Ultimate Software, a payroll and human resources software seller, and done so with less fanfare. Yielding a 20% annualized return since 2007, Ultimate Software has become the ultimate mid ...


AnandTech

AMD Releases Radeon Software Adrenalin Edition: Overlay, App & More for 2017
AnandTech
A few weeks ago, AMD took the courtesy of revealing the name (and nothing else) of their upcoming 2017 major feature update for Radeon Software. But today, the totality of AMD's Radeon Software Adrenalin Edition is finally upon us. Succeeding Crimson ...
Meet Radeon Software Adrenalin Edition: AMD Link mobile app ...PCWorld
AMD unveils Radeon Adrenalin graphics software update with mobile appVentureBeat
AMD Radeon Software Adrenalin adds in-game overlay, mobile app ...PC Perspective
Hot Hardware -Tom's Hardware
all 34 news articles »

Spaceman Shuttleworth Finds Earthly Riches With Ubuntu Software
Bloomberg
... so there is opportunity there for somebody to come in and fill those gaps,” said Tim Klasell, Senior Research Analyst at Northland Securities. “Those gaps have become big enough because Linux has become big enough.” Red Hat Inc. is the biggest ...

and more »

The Register

Fruit of an acquisition: Apple AI software goes open
The Register
Apple's joined other juggernauts of the tech sector by releasing an open source AI framework. Turi Create 4.0, which landed at GitHub recently, is a fruit of its 2016 US$200 million acquisition of Turi. As the GitHub description explains, it targets ...


Lansing State Journal

Michigan state employees question progress on new software system
Lansing State Journal
LANSING – Several Michigan state government employees and their unions are questioning reported progress in fixing glitchy new budgeting software that has delayed parts of paychecks to an unknown number of state workers. Gov. Rick Snyder's ...


Big Think (blog)

New DNA-Scanning Software Can ID You in Minutes
Big Think (blog)
Imagine a security system, say a key card scanner, an airport security checkpoint, or a pass code based on your DNA. That'd be really hard to hack. It sounds like science fiction. But researchers at Columbia University, along with colleagues at the New ...


WolfPAC Simplifies Risk Management with New Software Release
PR Newswire (press release)
BOSTON, Dec. 12, 2017 /PRNewswire/ -- WolfPAC Integrated Risk Management has launched their new platform "WolfPAC 4.0". The platform is designed for risk managers at organizations in heavily regulated industries, like financial institutions. With this ...

and more »

RingCentral -1.4% as part of JPMorgan's software downgrades
Seeking Alpha
Business communications firm RingCentral (NYSE:RNG) is 1.4% lower, caught up in a rack of software downgrades at JPMorgan. The analysts cut ratings on more than a dozen firms, saying they significantly outperformed the S&P 500 this year and are all ...

and more »

Packaging World

Beckhoff Automation: Vision software
Packaging World
Beckhoff Automation has announced the incorporation of comprehensive image processing capabilities into its PC-based control system with new TwinCAT Vision software, which unites a comprehensive range of machine functionality – PLC, motion control ...

and more »
Google News

Microsoft Great Plains: exchange & brokerage ? implementation notes

If you company is small or mid-size special products or... Read More

Create A Flash Presentation For Free With Open Office

The intentions of this short tutorial are not to teach... Read More

Microsoft Great Plains on Ctree or Pervasive SQL ? What to Do ? Tips for IT Manager

As you probably know, when Microsoft purchased Great Plains Software... Read More

Microsoft CRM Conversation Gateway: VoIP - Implementation & Customization

Microsoft CRM is winning market share step-by-step from such the... Read More

Scrap Booking Online: Word Perfect or Corel Graphics Suite?

Scrapbooks are very popular these days. I think that almost... Read More

Quick Summary of Basic and Common Linux Commands

There are many commands that are used in linux on... Read More

An Easy Way to Develop JAVA Enterprise Applications

Research bears that less than 70 percent of development projects... Read More

ERP for Large Corporation ? New Selling Strategy

Our opinion is based on our Microsoft Business Solutions Great... Read More

Crystal Reports For Microsoft Navision - Overview For Programmer/IT Specialist

Let us give you - developer some hints in the... Read More

Microsoft Great Plains Integration Manager: Using Continuum ? Overview for Developer

Microsoft Business Solutions Great Plains has I'd say end user... Read More

Mapping Software: Putting Data Visualization on the Map

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

What is a Document Manager without Version History?

Document Manager and Version HistoryIn previous articles I have discussed... Read More

Microsoft Great Plains Partner Selection: Overview

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

Microsoft CRM Integration with Microsoft Retail Management System (RMS) ? Overview

Microsoft Client Relation Management system (Microsoft CRM) and Microsoft RMS... Read More

Start Developing Your Own Software

Learning how to program software seems like a daunting task... Read More

Programming Environments And The Software Production Process

Introduction: The creating of a computer program involves a number... Read More

Microsoft RMS Customization ? PO Items Receiving in Great Plains

Microsoft Retail Management (RMS) and Microsoft Great Plains are retail... Read More

Freight Forwarding ERP: Microsoft Business Solutions Great Plains customization & setup ? overview

Microsoft Great Plains may be recommended for international freight forwarding... 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

MCP Market News: Microsoft SQL Server & SQL Reporting Services

Are you ready? SQL Server 2005, the next-generation data management... Read More

Not All Project Management Software is Created Equal

The purpose of Project Management Software is to provide an... Read More

Helping Newbies Understand Professional Software

The Windows registry is a huge database that ensures normal... Read More

Benefits of Integrating Online Chat Software with CRM

Customer Relationship Management (CRM) is a strategy and processes used... Read More

Where to Find Free Fleet Maintenance Software

Costs of fleet maintenance software can vary widely. It is... Read More

Healthcare Preventive Maintenance Software

Healthcare facilities such as clinics, hospitals, and biomedical laboratories can... Read More