Howto install Bash shell under FreeBSD

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0

Question: How to install Bash shell under FreeBSD ?freebsd-logo

Answer:

The bash shell is not installed as a  standart shell  package under freeBSD system, to install it

Under root  type the following commands:

# cd /usr/ports/shells/bash
# make install clean

That  takes  some  time  to install  some  dependencies,  after this you can switch to bash shell with  the  command

#bash

To  add this shell permanently to  the  user, type the following:

# chsh -s /usr/local/bin/bash pirat9

chsh: user information updated

Check if  the  shell user  is  updated

#cat  /etc/passwd  | grep pirat9

pirat9:*:1001:1001:xxxx xxx:/home/pirat9:/usr/local/bin/bash

or  directly edit /etc/password file  and  replace  the  shell  with  the  bash shell  directory under /usr/local/bin/bash

pirat9:*:1001:1001:xxxx xxx:/home/pirat9:/bin/csh

 

save  and  exit and   reboot

{module user9-footer}

 

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0