LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to change the default shell to bash? (https://www.linuxquestions.org/questions/slackware-14/how-to-change-the-default-shell-to-bash-311573/)

shadkong 04-09-2005 11:26 PM

How to change the default shell to bash?
 
The slackware's default shell is sh, but I want to change it to bash, How?
Thanks!

Namaseit 04-09-2005 11:30 PM

???
 
Uh, what? Actually it is bash. If you look at your user's shell in /etc/passwd it is set to /bin/bash. That is the default. Actually sh just points to bash anyways. So it doesn't really matter.

Stang_Man 04-09-2005 11:34 PM

chsh user /bin/bash

Namaseit 04-09-2005 11:45 PM

that works too. But like I said. sh = bash

if you do 'ls -l /bin |grep sh' then you will see it just links to bash.

shadkong 04-10-2005 12:41 AM

Namaseit, you are right, /bin/sh is a link to /bin/bash.
Thank you!

jschiwal 04-10-2005 09:26 AM

According to the bash 'man page', if bash is invoked by the name sh, it will mimic the startup behavior of the 'sh' shell. You may want to find out how changing the default will effect the startup scripts or environment variables used on your system, before going ahead with a change.

Stang_Man 04-10-2005 04:29 PM

Quote:

Originally posted by Namaseit
that works too. But like I said. sh = bash

if you do 'ls -l /bin |grep sh' then you will see it just links to bash.

even though it's a symbolic link in Slackware, how is it on other operating systems??

I've been told by numerous people /bin/sh != /bin/bash. One thing I've been told is /bin/sh lacks TAB completion.

Namaseit 04-10-2005 05:58 PM

Eh I just did typed in sh on my server and there is tab completion. It's probably just alot of other things maybe.

Stang_Man 04-10-2005 07:58 PM

well, obviously if your /bin/sh is linked to /bin/bash

Namaseit 04-10-2005 09:39 PM

Well yeah. I thought you were trying to tell me that bash when emulating sh it didn't do tab completion. If in your previous post you just meant that sh and bash are two different things then yes. That is right. Bash is the 'Bourne again shell'. While sh is the "original". There are a ton of other shells. csh, tcsh, ksh, zsh, psh. And about a hundred others.

GATTACA 04-22-2005 09:48 PM

Open up a Konsole in KDE.

Go to Settings->Configure Konsole...

Select the "Session" tab

Under "Session" select "Shell".

In the text field marked "Execute" type in: "/bin/bash --login" (without the quotes).

The --login is optional. You can set the color schema in the same window.

HTH.

Namaseit 04-23-2005 02:53 PM

Yeah but thats just for konsole. He wanted to know for non-gui. If you're in kde that's great. If you aren't using kde or just have headless server that doesn't help too much.

freakyg 04-23-2005 03:49 PM

Re: ???
 
Quote:

Originally posted by Namaseit
Uh, what? Actually it is bash. If you look at your user's shell in /etc/passwd it is set to /bin/bash. That is the default.
this is the default, GUI or not............until root or user changes it.........


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