Skip to main content

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 $SHELL to 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/sh or /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 $SHELL command 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