LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-18-2004, 08:34 PM   #1
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Rep: Reputation: 30
shell confusion..what is diff between bash, ksh, csh, tcsh..??


What is the difference between different shells? How are bash, sh, tcsh, csh, ksh, zsh, and whatever other ones different?

Why are there so many, and is bash the most popular? Are the shells really that different in shell script syntax?
 
Old 11-18-2004, 08:52 PM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Re: shell confusion..what is diff between bash, ksh, csh, tcsh..??

Quote:
Originally posted by servnov
What is the difference between different shells? How are bash, sh, tcsh, csh, ksh, zsh, and whatever other ones different?
Isn't that sort of like asking someone to tell you what's the diiference bewteen a ford, chevy, nissan, volvo, toyota, cadillac, bmw, fiat, kia?

They're all cars. They have differences.
 
Old 11-18-2004, 08:55 PM   #3
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Kubuntu 10.04, Mint 8 and Puppy 4.3.1
Posts: 355
Blog Entries: 1

Rep: Reputation: 31
Don't confuse yourself to much. Linux is a massive universe and you can get lost pretty fast. It is also why it is in my opinion, so powerful.

SH and BASH are the most common shell on popular distros today. BASH (Boure Again Shell) combines most of the good features from all of those other shells, it's syntax is pretty common from a programming standpoint and you will not need to use any other for your scripting needs.

If you learn BASH scripting, along the way you will read about others shells origins and functions in context of what you are learning and it will become clearer.

Let's just say that BASH is the result of the evolution of shells in UNIX / Linux systems.
 
Old 11-18-2004, 08:58 PM   #4
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
yes, well... ford is old, chevy is cheap, nissan is crap, volvo is safe....

i'd never really questioned this myself, always used bash and never asked 'why?'

...researching...
 
Old 11-18-2004, 09:09 PM   #5
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Original Poster
Rep: Reputation: 30
Hey, I have a Chevy and is awesome Thanks, I have always used bash too, but I noticed my dad using csh on old solaris systems (which seemed to be the default on solaris). He never does shell scritping...
 
Old 11-18-2004, 09:10 PM   #6
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
here ya go gang...

http://computing.fnal.gov/cd/unixlin...ml/shells.html

[edit]
-- or specifically: http://computing.fnal.gov/cd/unixlin...ells.html#4132
[/edit]

and here's the big reference: http://consult.cern.ch/writeup/shellchoice/main.ps

^^ yup that's the only format it comes in...

Last edited by secesh; 11-18-2004 at 09:12 PM.
 
Old 11-18-2004, 09:14 PM   #7
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
...well -- that was published in '94... i wonder how relevant it still is...

good enough for me, though -- my work here is done!
 
Old 11-18-2004, 09:28 PM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Hey, I have a Chevy and is awesome Thanks, I have always used bash too, but I noticed my dad using csh on old solaris systems (which seemed to be the default on solaris). He never does shell scritping...
it doesn't matter what shell you use when you write a script (in a file)
that's why you always start with
Code:
#! /bin/bash
when you write a bash script. You can execute this under tcsh or csh. The system recognizes this line and uses bash to execute the script.

I think all unix system use csh or tcsh as default

Last edited by perfect_circle; 11-18-2004 at 09:40 PM.
 
  


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
Script for csh or bash unihiekka Programming 5 10-15-2005 10:51 AM
processing a ksh shell in bash environment ntoughe Programming 9 09-12-2005 06:09 AM
looking for csh or tcsh help 1ernie Linux - Software 1 04-12-2004 06:43 PM
BASH vs CSH: * cant see very large files pat57 Linux - Software 6 08-04-2003 03:32 PM
tcsh/csh problem kicker Linux - Newbie 0 05-01-2002 04:30 PM


All times are GMT -5. The time now is 03:03 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration