When I open gnome-terminal, I see no command prompt. Pressing any button does not help. What can I do to fix my terminal?
Asked
Active
Viewed 9,138 times
3
1 Answers
1
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
Daniele Santi
- 3,164

xtermin your applications as an alternative terminal emulator? If that one works and gives you a usable shell with command prompt, something is badly configured in gnome-terminal, if both don't respond it's likely something bad in your shell initialization scripts. You should probably also be able to run commands from Gnome when you press Alt+F2, can you try opening a different shell in those terminals, by typinggnome-terminal -e shorxterm -e shthere respectively? Please report back with the results. – Byte Commander Jan 21 '19 at 12:39cp --backup /etc/skel/.bashrc ~/.bashrcand try again, this will reset your.bashrcfile to the default one. – pLumo Jan 21 '19 at 14:51