Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
you could also change workspace and then open up a terminal. –  Alvar Dec 28 '12 at 0:24

2 Answers 2

up vote 10 down vote accepted

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

share|improve this answer
    
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 '12 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 '12 at 22:30
    
grep? :O What's that? –  Amanda Dec 27 '12 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 '12 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 '12 at 22:37

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.

share|improve this answer
1  
Thanks! But you didn't tell me about the CRTL+ALT+F7 so I had to restart my PC hahaha. –  Amanda Dec 27 '12 at 22:23
    
@Amanda I hoped you used reboot now and not a forced reboot. –  David Dec 27 '12 at 22:31
    
Yes, I rebooted via command. –  Amanda Dec 27 '12 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 '12 at 9:40
    
+1 htop is much better than top is much easier than ps aux | etc. –  Sparhawk Dec 29 '12 at 4:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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