9

I looked it up on google but I didn't find anything helpful.

Anyway, I was playing Crysis 2 (with PlayOnLinux) and the game crashed, but I could't kill the process, I tried Ctrl+Alt+T but nothing but the game appeared on the screen, I had to Ctrl+Alt+Del and finish the session, also losing all my work.

On Windows there's the Windows Key (which opens the Unity Panel), but I can't do anything. And there's Ctrl+Alt+Del which opens all the processes (on Windows) but the terminal doesn't show up on me (Ctrl+Alt+T), I can't kill any process.

Any help?

1
  • you could also change workspace and then open up a terminal.
    – Alvar
    Dec 28, 2012 at 0:24

2 Answers 2

11

My favorite way to do that is

Ctrl+Alt+F1

Then when you're logged back in run ps aux | grep program keep in mind that program should be replaced with the filename of the executable. In your case ps aux | grep wine, then you should see something like this:

david     1234  0.0  0.0 1595676 2700 ?        Sl   16:12   0:00 wine cmd.exe

Where it says cmd.exe yours will be the exe of your game. To kill the process

kill 1234 1234 being the Process ID that the previous command gave you; then Ctrl+Alt+F7

13
  • Thank you, I didn't know about this CTRL+ALT+F1. But instead of "ps aux" isn't easier "ps -A"? And BTW I can't see all processes. How to scroll the page up?
    – Amanda
    Dec 27, 2012 at 22:24
  • @Amanda ps -A doesn't give you enoufgh details when its a wine program but if its a native program and theres only one running sure. If I understand the issue of "can't see all processes" are you using the grep part of that command.
    – David
    Dec 27, 2012 at 22:30
  • grep? :O What's that?
    – Amanda
    Dec 27, 2012 at 22:32
  • Grep is nice tool that sorts the output of a program so when you run ps aux you pipe it with a | to grep grep wine so ps aux | grep wine
    – David
    Dec 27, 2012 at 22:34
  • 1
    I prefer pgrep -f name to ps aux| grep name. And if you want to "see" all processes just pipe ps output to less, ps -efl|less.
    – McNisse
    Dec 27, 2012 at 22:37
4

In that case you could try Ctrl+Alt+F1. Then login with your user name and password and type top. Then you can choose to kill the program by typing kill PIDNR where PIDNR is the process id number of the program.

Get back into graphical mode using Ctrl+Alt+F7.

By the way, htop is an advanced version of top. You can install it easily (see next command) and you can call it simply by typing htop in a commandline. Is has a lot of functions.

sudo apt-get install htop

As an alternative, some people also use xkill and then point at the program (http://ubuntuforums.org/showthread.php?t=1812120). Very easy.

6
  • 1
    Thanks! But you didn't tell me about the CRTL+ALT+F7 so I had to restart my PC hahaha.
    – Amanda
    Dec 27, 2012 at 22:23
  • @Amanda I hoped you used reboot now and not a forced reboot.
    – David
    Dec 27, 2012 at 22:31
  • Yes, I rebooted via command.
    – Amanda
    Dec 27, 2012 at 22:34
  • Hi Amanda, sorry for that. Indeed you can get back into graphical mode using (CTRL+) ALT+F7. I will update the answer. Did you try htop?
    – don.joey
    Dec 28, 2012 at 9:40
  • +1 htop is much better than top is much easier than ps aux | etc.
    – Sparhawk
    Dec 29, 2012 at 4:46

You must log in to answer this question.

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