LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2013, 12:52 AM   #1
mahesh8
LQ Newbie
 
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
difference between bash and shell


hello fnds,

please tell me what is the main difference between shell and bash?
 
Old 01-27-2013, 02:02 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
It sounds like you're asking difference between Unix and Linux.

In a nutshell, a shell is command-line interpreter or working environment in Unix based operating system. It is nothing but collective name of class of various shells. It includes many different shell like bash, csh, tcsh, zsh, ksh and so on. However, for better understanding, once check here or do little googling or follow some guides.

On the other hand, bash is just a type of shell. Check here.
 
Old 01-27-2013, 02:38 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
A shell is the commandline interpreter and programming language used in text-mode terminals. Bash is one kind of shell. The most common others are C-shell, and a few others that share the common ancestry of the sh shell; ksh especially. sh is the Bourne shell, and ksh is the Korn shell (both named for their authors, I believe). Bash is the Bourne Again SHell, named for adherence to cheesy Unix naming practice.

--- rod.
 
Old 01-27-2013, 10:01 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,713

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
A "shell" is any program that encapsulates the system and creates a presentation for the user to interact with that system.

I say "any program" because it is possible to use any application for such a shell - a menu system, even a game.

Bash is a shell program that presents a command line interface and programming constructs that make it very flexible and relatively easy to use and extend. There are many such shell programs - csh, tcsh, sh... A few systems I have seen even had LISP set up as a shell.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 05:26 AM
What is the Difference between DOS and the Bash Shell. networkingnub Linux - Newbie 2 07-23-2009 01:34 AM
shell versus bash, whats the difference? mayaabboud Linux - Newbie 5 12-21-2007 07:21 AM
In BASH shell, what is the difference in usage between single and double quotes? davidas Linux - Newbie 2 04-05-2004 04:00 AM
Whats the difference Linux Console and BASH Shell glenn69 Linux - Newbie 2 08-31-2003 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration