FreeBSD Install BASH Shell
Q. 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
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- FreeBSD admin book / handbook
- How do I force IDE CD-ROM drive detecting during the Linux installation?
- Setting bash as default shell
- FreeBSD Disable /etc/rc.d Services Which Started Up At Initial Boot Time
- Howto get Red Hat Enterprise Linux Installation Number
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /usr/local/bin/bash, Bash, BASH Shell, chsh_command, command language interpreter, freebsd ports, freebsd ports collection, freebsd unix, make command, portsnap command, unix operating system




Recent Comments
Today ~ 70 Comments
Today ~ 2 Comments
Yesterday ~ 10 Comments
Yesterday ~ 12 Comments
09/03/2008 05:29 pm (2 days ago) ~ 6 Comments