Install bash and use it freebsd

Posted: December 16, 2009 in Freebsd

bash or sh is shell for freebsd

but i will use bash rather than sh

install bash using this command

pkg_add -r bash

To test it, you must enter the full path to bash:

/usr/local/bin/bash

Your prompt will change, as a sign you are using a different shell now
Change root shell from ‘/bin/sh’ to ‘/usr/local/bin/bash’
pw usermod user_name -s /usr/local/bin/bash
show the user
pw usershow user_name
or you can use this command but be carefull
env SHELL=/usr/local/bin/bash /usr/local/bin/bash -l
change
shell : /bin/sh
to
shell : /usr/local/bin/bash

last change the vi or ee editor in .profile

[root@bsd ~]# pico .profile

change from

export EDITOR=ee or vi

to

export EDITOR=nano

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s