Find the answer to your Linux question:
Results 1 to 8 of 8
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    33

    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 ?

    tia

    jet

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

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Posts
    33
    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
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jul 2005
    Posts
    72
    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
    Location
    Belgium
    Posts
    1,429
    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 www.zenwalk.org
    ** Zenwalk 2.8 - Xfce 4.4 beta 2- 2.6.17.6 kernel = Slack on steroids! **

  7. #6
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    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
    Just Joined!
    Join Date
    Jul 2005
    Posts
    33
    cheers m8 the xkill worked perfect m8 cheers for all your help guy

  9. #8
    Just Joined! keeno's Avatar
    Join Date
    Aug 2005
    Location
    Amman-Jordan
    Posts
    6

    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
  •