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 8,003 times
3
-
3Not sure if that is still (pre)installed, but can you search for `xterm` in 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 typing `gnome-terminal -e sh` or `xterm -e sh` there respectively? Please report back with the results. – Byte Commander Jan 21 '19 at 12:39
-
6Btw, Ubuntu 18.04 or 18.10? There is no 18.14 version. – Byte Commander Jan 21 '19 at 12:40
-
2Run `cp --backup /etc/skel/.bashrc ~/.bashrc` and try again, this will reset your `.bashrc` file to the default one. – pLumo Jan 21 '19 at 14:51
-
1check your .bashrc and any included files for incorrect escaping (seems like something is stuck, for example, it could be an alias with incorrect quotes). It should be enough to rename your .bashrc to test whether it is the culprit. – eko Mar 07 '19 at 15:12
-
The wallpaper reveals that it's Ubuntu 18.04 (Bionic Beaver). – Artur Meinild Sep 20 '21 at 11:26
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,084
- 4
- 30
- 30
artistworking
- 11
- 1
