14

Every so often my laptop locks up with some rogue process taking up all the i/o or processor. I then spend ages fighting with the mouse to open up the Applications menu so I can open a terminal so I can diagnose the problem and kill the process.

Is there a quicker way to break into the terminal?

2
  • Is it always the same program? it might be a bug. If it's a I/O problem it might be bad blocks on you hdd, or scratched optical media. (I know this is not directly to do with opening a terminal) Nov 23, 2010 at 8:13
  • Ive worked out its the auto system update thats really killing things. I've disabled that and changed the desktop to LXDE and things are running zippy now! I've also learnt a few things in the process! Nov 23, 2010 at 10:52

6 Answers 6

26

CTRL+ALT+F1 should give you a terminal where yon can log in to diagnose the problem. You can press CTRL+ALT+F7 (sometimes F8) to return to the GUI.

There are additional terminals in CTRL+ALT+F2, F3, etc...

I also find very useful to map CTRL+ESC to the system monitor, where I can kill a process quickly.

As SW01 said, you can also type ALT+F2 to execute one command. This will only work if gnome-panel is enabled (it works by default).

And fred.bear added than CTRL+ALT+T will open a new window with the default terminal.

1
  • 2
    Please, if you vote this up, vote too the other answers that I expanded here. Nov 22, 2010 at 15:17
12

The default keymapping for the default X terminal is Ctrl+Alt+T

8

Javier's answer is imo the best, but I figured more info is never a bad thing.
You can also type alt+f2 to open a small prompt. From there you can open bash or some other desired program.

4

If your system is utterly unresponsive, you can press Alt+SysRq+K (the sysrq key should be the same as the Print key) to Kill the X display server and all its child processes.

This will throw you back to the GDM login screen, killing all applications currently running on TTY7, which is the one where X is running.

→ More information on Magic SysRq Keys at Wikipedia.

Of course you will lose all unsaved data, and you won't know what process went awry, but it will respond even if some process prohibits you from doing everything else, the magic sysqr keys have highest priority.

If your system is still responsive enough to do what Javier Rivera suggested, this is obviously preferable. Type in ps aux on the command prompt you'll get through Ctrl+Alt+F1 to get a dump of all the processes currently running. You can use Shift+Page Up to scroll though lengthy output.

3

guake Install guake

can be opened with F12 and does a very good job even if your system is overloaded! It's a quake-style terminal.

1
  • Great little app :) I use this at work and it's awesome!!
    – AntonioCS
    Nov 24, 2010 at 12:39
1

Htop shows the top cpu users and allows you to kill a process without shutting down the entire system.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .