When I open gnome-terminal, I see no command prompt. Pressing any button does not help. What can I do to fix my terminal?
51 Answer
Under these circumnstances to be able to edit the .bashrc:
Go to the terminal and go to Edit/Preferences/Commands:
Tick these 2 :
- Run command as a login shell
- Run a custom command instead of my shell
- Custom command:
/bin/dash
- Custom command:
Close and open a new tab in the terminal, you should have a $ and be able to run some basic commands
- Now you can edit your
.bashrcfile (in your home directory), copy the content to.bashrc_badand then preferably delete everything inside.bashrc - Save it and run
bashto see if it crashes again