How to Install bash on FreeBSD 12
Bash is the shell, or command language interpreter, for the GNU operating system.Bash is quite portable. It currently runs on nearly every version of Unix and a few other operating systems.
In this tutorial, we will install bash and set it as default shell
Step 1: install bash
we can use any of the two methods below:
i. using pkg to install bash:
# pkg install bash
ii. using port collection:
# cd /usr/ports/shells/bash # make && make clean
Step 2: Set bash as default shell:
i. locate binary path of bash by running the following command
which bash
output should be similar to below:
/usr/local/bin/bash
ii. We then change default shell to bash by executing the following:
chsh -s /usr/local/bin/bash <username>