FreeBSD: How to set Bash as the default shell
Clash Royale CLAN TAG#URR8PPP
I've used bash shell in all my Linuxes and in Mac OS X. I understand that tcsh is the default shell in FreeBSD. If I were to install bash, how would I make it my default shell?
bash shell freebsd defaults
add a comment |
I've used bash shell in all my Linuxes and in Mac OS X. I understand that tcsh is the default shell in FreeBSD. If I were to install bash, how would I make it my default shell?
bash shell freebsd defaults
1
Should we distinguish between the root user and a non-root user?
– Jeff Schaller
Feb 16 at 15:37
I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.
– Jeff Schaller
Feb 16 at 15:50
As with most things, if you read the documentation in the Handbook, you'd have your answer.
– Rob
Feb 17 at 12:51
add a comment |
I've used bash shell in all my Linuxes and in Mac OS X. I understand that tcsh is the default shell in FreeBSD. If I were to install bash, how would I make it my default shell?
bash shell freebsd defaults
I've used bash shell in all my Linuxes and in Mac OS X. I understand that tcsh is the default shell in FreeBSD. If I were to install bash, how would I make it my default shell?
bash shell freebsd defaults
bash shell freebsd defaults
edited Feb 16 at 20:05
ilkkachu
61k1098174
61k1098174
asked Feb 16 at 15:31
Steve WrightSteve Wright
173
173
1
Should we distinguish between the root user and a non-root user?
– Jeff Schaller
Feb 16 at 15:37
I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.
– Jeff Schaller
Feb 16 at 15:50
As with most things, if you read the documentation in the Handbook, you'd have your answer.
– Rob
Feb 17 at 12:51
add a comment |
1
Should we distinguish between the root user and a non-root user?
– Jeff Schaller
Feb 16 at 15:37
I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.
– Jeff Schaller
Feb 16 at 15:50
As with most things, if you read the documentation in the Handbook, you'd have your answer.
– Rob
Feb 17 at 12:51
1
1
Should we distinguish between the root user and a non-root user?
– Jeff Schaller
Feb 16 at 15:37
Should we distinguish between the root user and a non-root user?
– Jeff Schaller
Feb 16 at 15:37
I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.
– Jeff Schaller
Feb 16 at 15:50
I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.
– Jeff Schaller
Feb 16 at 15:50
As with most things, if you read the documentation in the Handbook, you'd have your answer.
– Rob
Feb 17 at 12:51
As with most things, if you read the documentation in the Handbook, you'd have your answer.
– Rob
Feb 17 at 12:51
add a comment |
3 Answers
3
active
oldest
votes
Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash
(installing bash
from a FreeBSD package would automatically update /etc/shells
).
The steps involved, assuming an otherwise properly set up FreeBSD system, could probably be summarised into
sudo pkg install bash
chsh -s /usr/local/bin/bash
add a comment |
Yes
- install bash
- add it to
/etc/shells
- use chsh to set your new default shell.
add a comment |
The is also the pw utility.
pw usermod <user> -s /usr/local/bin/bash
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501054%2ffreebsd-how-to-set-bash-as-the-default-shell%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash
(installing bash
from a FreeBSD package would automatically update /etc/shells
).
The steps involved, assuming an otherwise properly set up FreeBSD system, could probably be summarised into
sudo pkg install bash
chsh -s /usr/local/bin/bash
add a comment |
Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash
(installing bash
from a FreeBSD package would automatically update /etc/shells
).
The steps involved, assuming an otherwise properly set up FreeBSD system, could probably be summarised into
sudo pkg install bash
chsh -s /usr/local/bin/bash
add a comment |
Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash
(installing bash
from a FreeBSD package would automatically update /etc/shells
).
The steps involved, assuming an otherwise properly set up FreeBSD system, could probably be summarised into
sudo pkg install bash
chsh -s /usr/local/bin/bash
Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash
(installing bash
from a FreeBSD package would automatically update /etc/shells
).
The steps involved, assuming an otherwise properly set up FreeBSD system, could probably be summarised into
sudo pkg install bash
chsh -s /usr/local/bin/bash
edited Feb 17 at 12:55
answered Feb 16 at 16:09
KusalanandaKusalananda
135k17255421
135k17255421
add a comment |
add a comment |
Yes
- install bash
- add it to
/etc/shells
- use chsh to set your new default shell.
add a comment |
Yes
- install bash
- add it to
/etc/shells
- use chsh to set your new default shell.
add a comment |
Yes
- install bash
- add it to
/etc/shells
- use chsh to set your new default shell.
Yes
- install bash
- add it to
/etc/shells
- use chsh to set your new default shell.
answered Feb 16 at 15:56
ctrl-alt-delorctrl-alt-delor
11.9k42260
11.9k42260
add a comment |
add a comment |
The is also the pw utility.
pw usermod <user> -s /usr/local/bin/bash
add a comment |
The is also the pw utility.
pw usermod <user> -s /usr/local/bin/bash
add a comment |
The is also the pw utility.
pw usermod <user> -s /usr/local/bin/bash
The is also the pw utility.
pw usermod <user> -s /usr/local/bin/bash
answered Feb 16 at 19:50
Vladimir BotkaVladimir Botka
24616
24616
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501054%2ffreebsd-how-to-set-bash-as-the-default-shell%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Should we distinguish between the root user and a non-root user?
– Jeff Schaller
Feb 16 at 15:37
I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.
– Jeff Schaller
Feb 16 at 15:50
As with most things, if you read the documentation in the Handbook, you'd have your answer.
– Rob
Feb 17 at 12:51