bash as default shell

Eric Shubert ejs at shubes.net
Wed Oct 6 07:07:33 MST 2010


Mike Hoy wrote:
> my hard drive has /home on a different partition
> it was failing fsck and to simplify I backed up my /home contents to a
> backup hdd and then set it up again
> 
> how to I use 'bash' when /etc/shells already shows me using /bin/bash?
> 
> vim /home/dio/.bashrc
> alias clearl="clear && ls -l"
> ~$ clearl
> -bash: clearl: command not found
> in terminal
> ~$ echo $SHELL
> /bin/bash
> 
> so I change to bash anyway:
> ~$ bash
> ~$ clearl  (works fine)
> 
> I've done this:
> 
> chsh -s /bin/bash
> password ***
> no luck
> 
> but I can type bash manually and I'm goold
> 
> ~$ echo $PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/dio/sh:/home/dio/
> 
> 
> cat ~/.bashrc
> alias clearl="clear && ls -l"

What's your login shell (as shown in /etc/passwd)?

-- 
-Eric 'shubes'



More information about the PLUG-discuss mailing list