Howto install Bash shell under FreeBSD

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


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


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}


Please shareShare on Facebook0Share on Google+0Tweet about this on TwitterShare on LinkedIn0Share on Reddit0Digg thisShare on StumbleUpon0Share on VKBuffer this page