Results 1 to 5 of 5

Thread: How to kill a process?

  1. #1
    Join Date
    Jul 2008
    Location
    Canada
    Beans
    311
    Distro
    Ubuntu 12.04 Precise Pangolin

    How to kill a process?

    Hi,

    Just added SuperTux2 on Ubuntu 8.10 (up to date), computer is P3, 1GHz, 750 MB Ram, video card is a low end 6 years old nVidia card 32 MB (forgot the model).

    When the game started, it is awfully slow and the graphics mode took the full screen (Ubuntu desktop is not visible). I would like to know a way to kill the process quickly.

    Generally, how to know the process of a particular application and how to kill a specific process?

    Thanks in advance for any help.

  2. #2
    Join Date
    Dec 2004
    Location
    Atlanta, GA USA
    Beans
    7,257
    Distro
    Ubuntu Development Release

    Re: How to kill a process?

    do alt-F2 to open a run dialog bog. then you can type in "xkill" without the quotes. it will turn your cursor into an x. just position the x anywhere in the open application and click. it will kill it.

  3. #3
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to kill a process?

    There are a lot of ways to terminate an app:

    GUI:
    1. System > Administartion > System Monitor. Processes tab, highlight the app, RtClk, End Process. If it doesn't end, right click again and select Kill.

    2. Force Quit (Add to Panel, Force Quit): Click on Force Quit icon, then click on app

    3. xkill, as previously mentioned.

    4. Find the PID and then kill the process (wth the less pipe, hold the ENTER key to scroll):
    Code:
    ps aux | less # or "ps aux | grep appname"  if you know the name  
    or 
    ps -u yourusername  # example: ps -u dave
    Then:
    Code:
    sudo kill -9 PID  # example  sudo kill -9 8876
    or
    5.
    Code:
    killall appname
    or
    killall -9 program
    6. Open a terminal: htop
    Highlight the process, F9 Enter (kill)
    Last edited by drs305; January 15th, 2009 at 08:49 PM.
    Back to Xorg...

    Retired.

  4. #4
    Join Date
    Jul 2008
    Location
    Canada
    Beans
    311
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to kill a process?

    Thank you gentlemen for your quick help. In particular drs305 for your very complete answer.

    Please note that in my particular case, the entire screen is in graphic mode (SuperTux2) there is no way for me to click on any Ubuntu menu.

    This SuperTux game is terrible, I wonder how it could be rated 4 stars in the Add/Remove Application. It is so slow, it is not even able to move a mouse. I want to learn ow to kill such crappy application if even the next time this occurs again.

    Can you please confirm that Alt-F2 would open a terminal or something to allow me to type in the commands?

  5. #5
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to kill a process?

    Yes, normally ALT-F2 will open a window. You can enter the command and run it. 'Tick' the 'Run in Terminal' box to display a terminal window so you can see the results.
    Back to Xorg...

    Retired.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •