How do you change from sh to bash in Unix?

Ngô Quốc Huy

New member
How do you change from sh to bash in Unix?
Answer
To change your shell with chsh:
  1. cat /etc/shells. At the shell prompt, list the available shells on your system with cat /etc/shells.
  2. chsh. Enter chsh (for “change shell”). …
  3. /bin/zsh. Type in the path and name of your new shell.
  4. su – yourid. Type in su – and your userid to relog in to verify that everything works correctly.
 

Tìm kiếm

Back
Top