/var/logmarcus chiu

/var/log

❯

Computer

❯

Boot Order/Sequence - Firmware - Bootloader - Operating System

❯

Kernels & Operating Systems

❯

Operating Systems (OS)

❯

UNIX

❯

UNIX - General

❯

UNIX - Terminal & Shell

❯

UNIX - Shell

UNIX Shell - Set Default

Created on Mar 15, 2019 · Last Modified on Dec 31, 2019

chsh

1. list the available shells in your machine
cat /etc/shells

You may need to add the path to the new shell binary into this file

2. change default shell for current user
chsh -s /bin/bash
chsh -s /usr/local/bin/fish

3. change default shell for a user
chsh -s /bin/bash username-here

passwd file

modify the passwd file

macOS

1. change default shell via mac’s directory utility
open directory utility app
click on directory editor
click on your name (exp. Marcus Chiu)
modify UserShell value