Find the answer to your Linux question:
Results 1 to 8 of 8
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to end a program?

    hi i was wondering ifsome one could tell me how to end a program that is not responding

    i know in winxp you just press cntrl alt then del and then end task but how do you do that in linux ?



  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    St. Petersburg, FL
    Open up another terminal, type:
    su -
    ps aux
    find your program, find its PID (the number at the very left) and do:
    kill 1234
    Where 1234 is the PID. If it still hangs, do:
    kill -9 1234

  3. #3
    hi m8 cheers for that but i can not see the program in the list m8 .the program is amsn and its not on the list m8 any ideas?

  4. $spacer_open
  5. #4
    Do you know the name of the process? If you do, you can do 'killall [process]', or 'killall -9 [process]' if the former doesn't work. If the command used to run aMSN is 'amsn' (I'm guessing that's the case), then you'd use 'killall amsn' or 'killall -9 amsn' to terminate it.

    Also, if you can see the window of the application that's frozen: open a terminal, run 'xkill', and click on the frozen application's window.

  6. #5
    Linux Engineer
    Join Date
    Apr 2005
    Just do $ pidof [application name] (in Slack) or $ pid [application name] (in SuSE afaik), then you get the Process ID. Then just simply do # kill [pid] .
    ** Registered Linux User # 393717 and proud of it ** Check out
    ** Zenwalk 2.8 - Xfce 4.4 beta 2- kernel = Slack on steroids! **

  7. #6
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    If you're in a graphical environment, you can use xkill, which will turn your cursor into a skull and crossbones and kill any window you click on. I believe there's a keyboard shortcut to bring it up (something equivalent to CTRL+ALT+DEL but not that exactly).
    Registered Linux user #270181
    TechieMoe's Tech Rants

  8. #7
    cheers m8 the xkill worked perfect m8 cheers for all your help guy

  9. #8
    Just Joined! keeno's Avatar
    Join Date
    Aug 2005

    how to end a program under linux

    Well, you have to go to the shell and type "kill [process#]"

Posting Permissions

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