LinuxQuestions.org
Help answer threads with 0 replies.
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 06-10-2004, 05:57 AM   #1
linuxzouk
Member
 
Registered: Apr 2004
Location: Malaysia
Distribution: Fedora Core
Posts: 93

Rep: Reputation: 15
Why so many shells?


Seems like quite a lot of shells out there. What the main differences? Which one best to use?

/bin/sh
bin/bash
bin/ksh
...
...
 
Old 06-10-2004, 07:05 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,159

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
You forgot all the C shells, csh and tcsh.

There are a lot of shells because a lot of people decided that it would be cool to write a shell . Sh is the original Bourne shell (these days on Linux it's usually just linked to bash, which is an improved Bourne shell). Bash, ksh, pdksh, and others are improved versions of that shell featuring better command line editing, more features for scripting, or both.

Unless you're going to be doing heavy duty shell scripting, the shell you use doesn't really matter that much. I stick with Bash since I know it reasonably well. If you use a BSD Unix system you will often be assigned tcsh (BSD systems generally have a C shell as the default), but you can change this. I'm told the C shells are terrible for scripting, and looking at some scripts, I can sort of see this.
 
Old 06-10-2004, 07:07 AM   #3
fluppi
Member
 
Registered: Oct 2003
Location: Switzerland (Europe)
Distribution: OpenSuSE, RedHat, Knoppix, IRIX + MacOSX
Posts: 198

Rep: Reputation: 30
Depends on your demands and tendencies.
The state-of-the-art is bash and it's the Linux default.
C programers may prefer the cshell and so one.

One point is, that sh (and vi) is available on most Linux/UNIX systems.
 
Old 06-10-2004, 07:19 AM   #4
mgyamada
LQ Newbie
 
Registered: Jun 2004
Distribution: Gentoo
Posts: 15

Rep: Reputation: 0
Sorry if this is too newbie even for the newbie forum, but it's my first post

What's a shell?
 
Old 06-10-2004, 08:02 AM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,159

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
A shell is a command interpreter. When you open up a terminal, you are interacting with a shell (Bash, generally, on Linux systems). Shell commands can also be scripted (think batch scripts in DOS, if you're familiar with them, but much better).
 
Old 06-10-2004, 08:36 AM   #6
linuxzouk
Member
 
Registered: Apr 2004
Location: Malaysia
Distribution: Fedora Core
Posts: 93

Original Poster
Rep: Reputation: 15
now i know a little bit more

thanks all
 
  


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
help on the different shells... JoannesX Programming 2 02-06-2005 12:07 PM
do I need all the shells? helpme0904 Fedora 6 10-01-2004 03:03 PM
changing shells laclac01 Linux - General 1 07-22-2004 10:04 AM
Limiting Shells paeng16 Linux - Security 6 06-21-2004 02:02 AM
Shells andrewtc Linux - Newbie 3 05-01-2003 04:52 PM


All times are GMT -5. The time now is 05:21 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