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

SK

|

I am working on it. Stay tuned. Thanks for the comment.

adriana rizzati

|

You are right, I saw them just now and they are awesome!

SK

|

Thanks for the comment Abdullah. Stay tuned with us always.

Abdullah Musazai

|

Thank you for such a great service you always do, hope you gain more power and more energy to work more & more

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