I can not
$ sudo su everytime, I enter the command, the terminal says :
can not execute /usr/bin/zsh no such file or directory
How to return to default bash of Ubuntu and make bash as default bash?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
First remove the symlink and make a new symlink that makes the default to previous bash
sudo ln -sv /bin/bash /bin/sh
Exit the terminal, and start a new terminal.
Now, change root's shell. Edit the passwd file - Start any editor and search for
I used vim -
$ sudo vim /etc/passwd
/zsh. For me it was on the first line:
:wq, Enter - This is for saving and exiting Vim.
For other editors like gedit and nano, just search for
zsh, edit line, then save and exit.
Then exit Bash and restart your PC.