How to change your shell to bash in FreeBSD 13.2

For those of you transitioning from Linux to FreeBSD, a sense of familiarity is a desirable trait during the change.

Most Linux distros have the bash shall set as the default.

You will likely find that a vanilla FreeBSD installation won't already have the bash shell installed and you''ll need to install it (the default shell for FreeBSD is tsch).

Run pkg update to get the latest packages.

After this has completed, next we'll run the actual installation by issuing the following command:

    pkg install bash

 Then run the following to set the shell to bash, where the username in the command equals the username you want to change the shell for: 

    chsh -s /usr/local/bin/bash username

Alternately you can run the following:

    pw usermod username -s /usr/local/bin/bash

To set the shell permanently

If you want more information on Shells within FreeBSD, see the following from the FreeBSD Foundation: 

https://docs.freebsd.org/en/books/handbook/basics/#shells

Name

false
ltr
static_page
Tech Lab: How to change your shell to bash in FreeBSD 13.2
How to change your shell to bash in FreeBSD 13.2
Tech Lab
https://techlab.connektiv8.com/p/how-to-change-your-shell-to-bash-in.html
https://techlab.connektiv8.com/
https://techlab.connektiv8.com/
https://techlab.connektiv8.com/p/how-to-change-your-shell-to-bash-in.html
true
5093225316588518036
UTF-8
Not found any posts Not found any related posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU Tag ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Contents See also related Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network