Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to kill a program?

  1. #1
    Join Date
    Jul 2011
    Beans
    89

    Post How to kill a program?

    Hello there,

    I pressed the log-off button and I realized I still had programs running. I quickly selected "Lock Screen" and logged back in. I have "Docky" appearing on my screen and not going away. I tried to "Quit" it, remove it from launcher, but it isn't working. Is there a way of killing this unresponsive program through the terminal?

  2. #2
    Join Date
    May 2011
    Location
    Osorno Chile
    Beans
    154

    Re: How to kill a program?

    Hi, yes, just type "xkill" and then click on the app thats frozen. That's all.


    Best Luck
    My Arch Linux Blog in Spanish
    Quote Originally Posted by Jacobonbuntu View Post
    No OS is good in itself; it is always the combination of user and OS that makes a good combination, or not.

  3. #3
    Join Date
    Jul 2011
    Beans
    89

    Re: How to kill a program?

    Quote Originally Posted by silex89 View Post
    Hi, yes, just type "xkill" and then click on the app thats frozen. That's all.


    Best Luck
    Thank you very much. Does Ubuntu have a program similar to that of the Windows Task manager?

  4. #4
    Join Date
    Mar 2009
    Location
    Western Hemisphere.
    Beans
    136
    Distro
    Ubuntu

    Re: How to kill a program?

    Quote Originally Posted by WubiAR View Post
    Thank you very much. Does Ubuntu have a program similar to that of the Windows Task manager?
    The "System Monitor" program mimics the Task manager pretty well. From the command line it should be gnome-system-monitor, in Gnome Classic it should be under the system menu, and in Unity you can find it by under Applications->System.

  5. #5
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to kill a program?

    Quote Originally Posted by WubiAR View Post
    Thank you very much. Does Ubuntu have a program similar to that of the Windows Task manager?
    'ps -ef' will give you a list of all running processes and, amongst others, the PID. You can kill a process nicely with 'kill pid#' and if it does not get killed, 'kill -9 pid#' will get rid of it.

    There might be a GUI based alternative to ps, but I never looked at it.
    If you don't make backups of your important data, your data is obviously not important to you.

  6. #6
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    7,906

    Re: How to kill a program?

    I love Xkill. Very satisfying use of the skull and cross bones. Just don't click on your desktop by accident... Yeah, OK, go ahead and do it, if you have nothing important running!

  7. #7
    Join Date
    Jul 2011
    Location
    Germany
    Beans
    42
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to kill a program?

    You can also use
    Code:
    top
    to show all running tasks. To kill them you can use the already mentioned
    Code:
    kill #pid

  8. #8
    Join Date
    Oct 2009
    Location
    StartUbuntu
    Beans
    4,244
    Distro
    Ubuntu Gnome Development Release

    Re: How to kill a program?

    If you are not a friend of CLI

    By the way, don't freak out, I'm using Mint 11 but it has exactly the same app (System Monitor).
    Attached Images Attached Images

  9. #9
    Join Date
    Mar 2009
    Location
    Western Hemisphere.
    Beans
    136
    Distro
    Ubuntu

    Re: How to kill a program?

    Quote Originally Posted by Wim Sturkenboom View Post
    'ps -ef' will give you a list of all running processes and, amongst others, the PID. You can kill a process nicely with 'kill pid#' and if it does not get killed, 'kill -9 pid#' will get rid of it.

    There might be a GUI based alternative to ps, but I never looked at it.
    If you're looking for a specific process, pgrep and pkill are nice shortcuts. So for instance 'pkill firefox' would kill all firefox proceses nicely, and 'pkill -9 firefox' would kill them dead no matter what.

  10. #10
    Join Date
    Jan 2007
    Location
    Peterborough, Uk
    Beans
    630
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How to kill a program?

    or

    Code:
    pidof <program name> (eg:banshee)
    7719

    paul@Main-Computer:~$

    Code:
     Kill 7719

Page 1 of 2 12 LastLast

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
  •