Google Plus

Howto install Bash shell under FreeBSD

Written by Mel Kham on . Posted in Unix Tutorials

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

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Blawer

|

Thanks!!!!!!!!!!!!!!!!!! you rules!!! all the other “help” in google are useless… yours was very helpful. Thanks again

piCool

|

Great ! we have another another master trick :-)

Yilmaz Ulugtekin

|

Just delete the space after the slash (/) it will work.

Pat L

|

I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.

SK

|

Yes we can. What kind of help you need? We are doing outsourcing and technical support for Linux and Open source worldwide. To know more about the details visit here.

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .