FG
💻 Software

How do I change my default shell on a AWS instance?

Fresh5 days ago
Mar 15, 2026133014 views
Confidence Score1%
1%

Problem

I want to change my shell from the default bash shell to zsh on my Amazon EC2 instances. How do I go about doing it? Thanks!

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I change my default shell on a AWS instance?

Low Risk

Try using the command. e.g. You can confirm the location of zsh by running , or alternatively simply run If you want to change the shell for a user account other than the one you're logged into, you'll need to run it as root, so to change john's shell, do: Note that you'll need to log out and log back in for the change to go into effect. If you're using Gnome or some other window manager, you'll need to completely log out of that session as well—simply closing and opening your terminal is insuf…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment