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:

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

The Verge

Google is using software to make the Pixel 3's screen corners even rounder
The Verge
Material Theme, an updated version of the company's software design philosophy, is the driving force behind the Gmail and Chrome redesigns of late, and you'll notice it most prevalently in the new Chrome tab design that eschews rough and pronounced ...


TechCrunch

Buggy software in popular connected storage drives can let hackers read private data
TechCrunch
Security researchers have found flaws in four popular connected storage drives that they say could let hackers access a user's private and sensitive data. The researchers Paulos Yibelo and Daniel Eshetu said the software running on three of the devices ...


Pinterest's Evan Sharp on the Future of Software
WIRED
Over the next few weeks we'll be publishing these taped conversations as a part of the podcast. In this particularly interview, Mike and Arielle ask Sharp what it's like to receive praise from Ive, how machine learning is changing software design, and ...


Coupa Software Acquires Aquiire For Supplier Catalog Search
Seeking Alpha
Coupa has acquired Aquiire for an undisclosed amount. Aquiire has developed a highly regarded B2B eProcurement system. For COUP, the deal should bolster its Business Spend Management platform and provide customers with cost-reduction capabilities ...

and more »

GeekWire

Software company Qualtrics files to go public
MarketWatch
Qualtrics International Inc., a Utah-based software company filed for an initial public offering Friday. The company did not yet provide a number of shares it expects to offer or an expected price, but said it plans to raise $200 million, which is ...
Cloud software company Qualtrics plans to follow rival SurveyMonkey to the public marketsCNBC
Qualtrics files for $200M IPO, continuing the trend of enterprise software companies going publicGeekWire

all 11 news articles »

Motley Fool

Check Point Software Will Be Checking In With Investors Next Week
Motley Fool
Check Point Software Technologies (NASDAQ:CHKP) is dawdling even as the broader cybersecurity market is growing at a solid pace. The cybersecurity specialist has been more concerned with share buybacks and growing its bottom line, even as rivals are ...

and more »

Crunchbase News

Early-Stage SaaS VC Slip Snaps Recovery As Public Software Stocks Soar
Crunchbase News
However, the investment boom times didn't necessarily carry over to the seed and early-stage end of the subscription software businesses. The chart below displays deal and dollar volume of seed and early-stage venture investments made into companies ...


C4ISRNet

The Army will test new software for its vehicles' computers
C4ISRNet
The two software products, which operate on Mounted Family of Computer Systems (MFoCS) hardware, include Frontline v2.0 — the core software that has a common look and with Command Post Computing Environment software — and the Android Tactical ...


San Antonio Business Journal

How the military is developing cybersecurity defenses quicker
San Antonio Business Journal
When the commercial software market shifted to apps, it was obvious that the old way of developing software had to go. With regular security and capability upgrades now expected by consumers, Silicon Valley companies replaced the traditional lengthy ...


Health Data Management

Salinas Valley using Pure Storage software to aid legacy performance
Health Data Management
Salinas Valley Memorial Healthcare System in Salinas, Calif., has gone live on software from Pure Storage to improve the performance of legacy applications, as well as supporting a next-generation electronic health record and a picture archiving and ...

Google News

Free Program Removes Spyware not Detected by Premium Security Scan

What is Spyware?Spyware monitors your surfing habits and sends the... Read More

Rapid Application Development - Is it Really a Need of Today?

Rapid Application Development (RAD) is a software development methodology. In... Read More

Groupware: What Works the Way Businesses Do?

GroupwareThe internet is full of 1.5 million to 7 million... Read More

Instant Messenger Clients

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

Top Questions to Ask Before Buying a Help Desk & Asset Management Software

#5 All your hardware components like Printers, PCs etc come... Read More

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

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

Microsoft CRM Implementation ? Fundamental CRM Principles Revision

Microsoft CRM is relatively new player on the now becoming... Read More

Performance Tuning of a Daffodil DB / One$DB -JDBC Application

This article illustrates the best practices to improve the performance... Read More

Navision Attain C/ODBC Crystal Report ? Customization Example

Microsoft Business Solutions Navision is main ERP application for European,... Read More

The Opera Alternative

Security flaws have long plagued Internet Explorer (IE), the market-dominating... Read More

Microsoft Great Plains: Service Business Customization & Integration Example

Microsoft Business Solutions Great Plains might be considered as ERP... Read More

Microsoft CRM Implementation for Large Corporation ? overview

Microsoft Business Solutions CRM is now approaching the phase of... Read More

Did You Ever Want to Completely Erase Everything on Your Computer?

Did you ever want to erase everything on your computer?... Read More

Photoshop Files and Formats

People often ask me: What image file formats will Photoshop... Read More

Microsoft Navision Customization and Reporting ? Tips For Programmer/IT Specialist

C/SIDE (Client/Server Integrated Development Environment) - The core of... Read More

Microsoft Great Plains ? Licensing & Product Versions

Current Microsoft Business Solutions Great Plains has more that 10... Read More

Microsoft Business Solutions Partner ? How to Launch New IT Consulting Practice

In the new era of internet marketing the problem of... Read More

Business Plan Software Review: Ultimate Business Planner?

One of the main reasons business owners and entrepreneurs use... Read More

Cisco Certification: Introduction To ISDN, Part V

The major reason I recommend getting your hands on real... Read More

Microsoft Great Plains Subcontracting ? Overview for Microsoft Business Solutions Partner

Microsoft Business Solutions Great Plains is very popular ERP/MRP applications... Read More

Microsoft Great Plains Integration Manager ? Working With Text File

Microsoft Business Solutions main middle market ERP application - Microsoft... Read More

Microsoft CRM and No-Frills Cadillacs

In today's business world it's all but impossible to escape... Read More

Free Software - Powerful Alternatives to Budget-Busting Software

When you buy a computer, it most likely comes with... Read More

Groove Network. Are you in it?

If you are in a business that passes documents around... Read More

Introducing GRML

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