Home » Questions » Computers [ Ask a new question ]

How do I change my default shell to use ZSH in Ubuntu? [duplicate]

How do I change my default shell to use ZSH in Ubuntu? [duplicate]

I want to change my default shell in Ubuntu to ZSH. What's the command to do this?

Asked by: Guest | Views: 395
Total answers/comments: 2
bert [Entry]

"Use

chsh -s $(which zsh)

Unlike adduser or useradd or editing /etc/passwd, this will allow you to change your shell without having root rights."
bert [Entry]

"You would have to edit your /etc/passwd

Use the vipw command and change the shell next to the user you want to change. To make it the default for all new users useradd -D -s /bin/bash"