How to Change Your Default Linux Shell Using the Terminal
HardReset.InfoDecember 17, 20253 min37 views
4 connectionsΒ·6 entities in this videoβAccessing the Terminal and Checking Current Shell
- π» Open the Terminal application to begin the process of changing your default shell.
- π‘ Use the command
echo $SHELLto display your currently active shell. - π― For most users, the default shell is likely Bash, but this video demonstrates how to switch to another.
Identifying Available Shells
- π To see all shells installed on your system, use the command
cat /etc/shells. - π This command lists the full paths to available shells, such as
/usr/bin/shor/usr/bin/zsh.
Changing Your Default Shell
- βοΈ The command to change your shell is
chsh -s, followed by the full path to your desired shell. - π After entering the command, you will be prompted to enter your account password for authentication.
- β οΈ Crucially, the change will not take effect until you log out of your current session and log back in.
Verifying the New Shell
- β Once logged back in, open the Terminal again.
- π Re-run the
echo $SHELLcommand to confirm that your default shell has been successfully updated to the one you selected. - π If the command shows the new shell path, the process was successful.
Knowledge graph6 entities Β· 4 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
6 entities
Chapters2 moments
Key Moments
Transcript11 segments
Full Transcript
Topics11 themes
Whatβs Discussed
LinuxDefault ShellTerminalchshBashZshShell PathCommand LineUser AccountLogoutLogin
Smart Objects6 Β· 4 links
ConceptsΒ· 2
ProductsΒ· 4