User Tools

Site Tools


change_the_default_shell

This is an old revision of the document!


Change the default shell

Method 1:

Use ~/.profile .

For example, to change the default shell to bash, add the following lines to ~/.profile

# Change the default shell to bash
eval /bin/bash

Method 2:

use chsh. For example, to set the default shell to zsh.

rajulocal@hogwarts ~ % chsh -s /usr/bin/zsh 
Password:

keywords | login shell

Check the default shell

echo $0
change_the_default_shell.1672779956.txt.gz · Last modified: 2023/01/03 21:05 by raju