11

Possible Duplicate:
How do I make Bash my default shell on Ubuntu?

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

1
  • 1
    zsh is a shell, not a terminal. Dec 9, 2011 at 8:03

3 Answers 3

20

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.

0

hum ... zsh is a shell, not a terminal.

An alternative answer to MrStatic's is using change the default shell with chsh, this can be done for your account without any root privileges.

-1

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

Not the answer you're looking for? Browse other questions tagged .