Can't open terminal because of settings
There might be simpler ways around this.
In many desktop environments, you can run an arbitrary command via the GUI. A common shortcut for this is AltF2. Just run gnome-terminal -x sleep 10h
.
Or: Login to a TTY (CtrlAltF1-F6). Run DISPLAY=:0 gnome-terminal -x sleep 10h
.
Or: You might have another terminal emulator installed, say xterm
. Run it, and then gnome-terminal -x sleep 10h
.
Or:
- Open your file manager, and go to
/usr/share/applications
- Find
gnome-terminal.desktop
, and copy it somewhere (your~/Desktop
, or~
, etc.) - Edit the copy (probably can be done by right clicking and choosing Open With, and then picking an editor)
- Change
Exec=gnome-terminal
toExec=gnome-terminal -x sleep 10h
- The copied file should be showing the GNOME Terminal icon. If it isn't, right click it, go to Properties and ensure that it is executable.
- Double-click the copy to execute it, which should launch an instance of GNOME Terminal running
sleep 10h
.
You now have 10 hours to undo whatever you did.
Related videos on Youtube
Vilius Povilaika
Updated on September 18, 2022Comments
-
Vilius Povilaika over 1 year
Hello. I have a problem with my terminal: I can't open it. I have done a thing like written here
I have checked 'Run a custom command instead of my shell' and typed in 'echo Hello World'. Now I can't open terminal - whenever I try nothing doesn't apear, so I can't change back the settings. Any idea of how could I fix it?
-
Vilius Povilaika over 8 yearsThanks man, you saved me. I have opened
xterm
from /usr/share/applications and ran the commandDISPLAY=:0 gnome-terminal -x sleep 10
Just after this a Terminal appeared. I have closed the bothxterm
andTerminal
I tried to openTerminal
again and it worked perfectly! Thank you very much for the answer. -
IberoMedia over 6 yearsI got myself into this problem too b/c I set Custom command: script ~/terminalSessions/$(date +"%Y%m%d-%T-terminal-session.txt"). I wanted to append dateTime to script's session file. Thank you