LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 04-13-2011, 05:32 AM   #1
Ribo01
Member
 
Registered: Aug 2010
Posts: 97

Rep: Reputation: 5
default shell ?


Hello y'all. Would like someone to help me out with the list of default shell for varieties of linux/Unix OS's. If am correct, Red Hat used BASH by default, and I know solaris 10 uses.KSH . By default. So will like to get the list of the default shell used by other packages or should o say varieties of Linux/Unix OS's . Thanks as always. Cheers.
 
Old 04-13-2011, 05:39 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,798

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
To see a list of installed shells on your system, do the following:
Code:
chsh --list
As far as a list, here you go, this should start you off: http://www.labtestproject.com/list_of_linux_shell

Cheers,

Josh
 
1 members found this post helpful.
Old 04-13-2011, 05:41 AM   #3
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

Are you looking for a comparison between shells? Have a look at this page: Linux Shells. Or from Wikipedia. Hope it helps.

Kind regards,

Eric
 
1 members found this post helpful.
Old 04-13-2011, 05:45 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,598
Blog Entries: 29

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
I feel the question was: "Which Linux distributions use which shells by default".
 
1 members found this post helpful.
Old 04-13-2011, 06:34 AM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
Typically, the list of installed/avail shells is in /etc/shells.
On my Centos 5.6 system it says
Code:
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/ksh
iirc, the same file (or equiv) is used in Solaris.
Typically, Linux will default to bash, solaris to ksh BUT root is often set to 'sh'. YHBW.
I seem to remember reading that Ubuntu tends to default to dash in certain circumstances, but then Ubuntu is a bit odd the way it does some things.
 
Old 04-13-2011, 08:19 AM   #6
Ribo01
Member
 
Registered: Aug 2010
Posts: 97

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Anisha Kaul View Post
I feel the question was: "Which Linux distributions use which shells by default".
Thanks to you all. But I think anisha kaul got exactly what I intended to ask. So can anyone help with a link to see the list of linux distributions and their default shell. Thanks.
 
Old 04-13-2011, 08:40 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
On Linux bash is the default shell and as far as I know this is true for every distribution.

Markus
 
Old 04-13-2011, 02:30 PM   #8
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,388
Blog Entries: 2

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
Quote:
Originally Posted by markush View Post
On Linux bash is the default shell and as far as I know this is true for every distribution.

Markus
Lets not forget about all of the mini/micro Linux distros that mostly use Busybox (a kind of Swiss-army-knife of software tools, that includes a basic shell).

--- rod.
 
Old 04-13-2011, 04:19 PM   #9
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by chrism01 View Post
I seem to remember reading that Ubuntu tends to default to dash in certain circumstances, but then Ubuntu is a bit odd the way it does some things.
On Ubuntu systems since 6.10 /bin/sh is a symlink to /bin/dash. Bash is still the default login shell.

https://wiki.ubuntu.com/DashAsBinSh

Edit
@Ribo01, to get more useful responses please consider sharing your reason for wanting such a list. I don't know if such a thing exists. If we know why you want it then maybe there is a better way to accomplish whatever you're after.

Last edited by Telengard; 04-13-2011 at 04:23 PM.
 
Old 04-13-2011, 04:38 PM   #10
Ribo01
Member
 
Registered: Aug 2010
Posts: 97

Original Poster
Rep: Reputation: 5
Hey, telengard. Am just someone trying to learn and cover everything that i need to know basically. Have been a Microsoft user all my lfe. So aint no harm in learning or trying to learn about a new thing. Thanks again you all.
 
Old 04-13-2011, 08:22 PM   #11
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by Ribo01 View Post
So aint no harm in learning or trying to learn about a new thing. Thanks again you all.
Quite correct, and no one would blame you for asking. This is after all LinuxQuestions

Bash is the default login shell on every Linux I've used. There are many shells to choose from, but I have never encountered a reason to try them. You can install multiple shells and set your own preferred default.

I've never used a traditional Unix system, although I did spend a short time on a Red Hat system configured to act like one.

HTH
 
  


Reply

Tags
shell


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default shell songeek Solaris / OpenSolaris 4 04-13-2007 12:23 PM
I made a shortcut to a shell script and it is using default shell icon... shlinux Linux - Software 2 04-20-2006 06:29 AM
'sh' shell - Actually calls legacy Bourne shell, or uses system default? Dtsazza Linux - Software 1 10-28-2005 09:20 AM
default shell aspargo Linux - Newbie 3 08-09-2004 03:38 AM
default shell IBP Linux - Newbie 2 12-21-2002 05:52 AM


All times are GMT -5. The time now is 04:34 AM.

Main Menu
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