Richard in Linux 1 minutes

Freebsd Install Bash

How do I install bash on FreeBSD? Like this..

Bash is a Unix shell and command language (written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell). First released in 1989, it has been distributed widely as the default shell for Linux distributions and Apple’s macOS (formerly OS X). A version is available for Windows 10.

Installing bash..

$ pkg install bash

Be warned…. bash requires fdescfs(5) mounted on /dev/fd

mount -t fdescfs fdescfs /dev/fd

Make it permanent..

echo "fdescfs	/dev/fd		fdescfs		rw,late	0	0" >> /etc/fstab

Life is easier if bash is the default shell..

chsh -s bash

Check it’s really done..

finger root
Login: root           			Name: Charlie Root
Directory: /root                    	Shell: /usr/local/bin/bash

Happy Days.