LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   default shell ? (http://www.linuxquestions.org/questions/linux-newbie-8/default-shell-874740/)

Ribo01 04-13-2011 05:32 AM

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.

corp769 04-13-2011 05:39 AM

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

EricTRA 04-13-2011 05:41 AM

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

TheIndependentAquarius 04-13-2011 05:45 AM

I feel the question was: "Which Linux distributions use which shells by default".

chrism01 04-13-2011 06:34 AM

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.

Ribo01 04-13-2011 08:19 AM

Quote:

Originally Posted by Anisha Kaul (Post 4323160)
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.

markush 04-13-2011 08:40 AM

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

Markus

theNbomr 04-13-2011 02:30 PM

Quote:

Originally Posted by markush (Post 4323321)
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.

Telengard 04-13-2011 04:19 PM

Quote:

Originally Posted by chrism01 (Post 4323199)
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.

Ribo01 04-13-2011 04:38 PM

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.

Telengard 04-13-2011 08:22 PM

Quote:

Originally Posted by Ribo01 (Post 4323814)
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


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