How to change shell in Unix?
This is how you can Change your shell:-
On computers running Linux, at the Unix prompt, enter: chsh -s newshell
Replace that newshell with the full pathname of the shell you want to use. Enter your password when prompted, and the system will change your shell. To see a list of the available shells, at the Unix prompt, enter:
chsh -l
On computers running Solaris (e.g., Steel at IU), at the Unix prompt, enter: chsh newshell
Replace newshell with the full pathname of the shell you want to use. To see a list of the available shells, at the Unix prompt, enter:
chsh
On HP-UX machines, at the Unix prompt, enter: chsh username newshell
Replace username with your username, and newshell with the full pathname of the shell you wish to use.
For example, if dvader wanted to change to bash, he would enter:
chsh dvader /usr/local/bin/bash
On AIX, to list the available shells, at the Unix prompt, enter: chsh
The system will then ask you if you really want to change your shell. If you press y and then Enter, you will be prompted to enter the full path of the new preferred shell. For example, to change to bash, enter:
/usr/local/bin/bash
On computers running Tru64 Unix, at the Unix prompt, enter: chsh
You'll then see something similar to the following:
Old shell: /bin/csh New shell:
The old shell listed is the one currently running. To leave your shell unchanged, press Enter. To change shells, enter the full pathname of the shell you wish to use. For example, to change to bash from csh, at the "New shell:" prompt, enter:
/usr/local/bin/bash
|