0

This question already has an answer here:

I messed up and now terminal closing itself as soon as I open him. I wanted that terminal execute command when it's starts, but I haven't noticed "when command exits" was "close terminal". Now it's closing itself as soon as I open it. How to fix? Reset terminal settings?

marked as duplicate by Zanna, karel, Eric Carvalho, Fabby, Charles Green Dec 21 '17 at 14:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Open a tty (control-alt-f2) and see if you can login, edit the file with vi or nano and remove the line you added. (control-alt-f1 gets you back to the graphical interface) (control-alt-f7 if you use unity).

If a tty closes itself too use a live dvd session and edit the file from a live session.

  • what do you mean by editing file vi or nano? – Soundwave2142 Dec 19 '17 at 18:02
  • I said "with". You can edit text files on commandline with "vi" or "nano". – Rinzwind Dec 19 '17 at 18:36
0

Open xterm

Type this command:

gnome-terminal -e -ls

the bash shell (gnome-terminal) will be open (instead of closing), because it tries to execute another command than the other established in the profile configuration.

Change the profile configuration.

Not the answer you're looking for? Browse other questions tagged or ask your own question.