Aug
17
2009

FreeBSD Install BASH Shell

I’d like to bash under FreeBSD for bash programming. How do I install bash shell under FreeBSD UNIX operating system?

A. Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. csh / tcsh (C shell with file name completion and command line editing) is the default shell under FreeBSD. However, you can easily install and use bash as shell.
Install bash under FreeBSD

Login as root and type the following command:
# portsnap update extract
# cd /usr/ports/shells/bash
# make install clean

To use bash shell, enter:
# bash

OR
# /usr/local/bin/bash

To set bash as default, shell enter:
# chsh -s /usr/local/bin/bash {username}
# chsh -s /usr/local/bin/bash vivek

Vir: http://www.cyberciti.biz/

About the Author: Urban Cetinski

Urban Cetinski :)

Leave a comment

Get Adobe Flash playerPlugin by wpburn.com wordpress themes