Results 1 to 5 of 5

Thread: Keyboard shortcut for killing a program?

  1. #1
    Join Date
    Sep 2009
    Beans
    1

    Keyboard shortcut for killing a program?

    Hello. I'm fairly new to Ubuntu, and I was just wondering if it is possible to create a keyboard shortcut that will kill a program in the foreground. My computer is pretty slow, so a shortcut of this sort would be very handy for stopping a particularly slow app.
    Thank you.

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Keyboard shortcut for killing a program?

    You can create a launcher for xkill:

    Right click on the desktop and select Create Launcher then see the screenshot for what to enter.
    Attached Images Attached Images

  3. #3
    Join Date
    Oct 2009
    Beans
    10
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Keyboard shortcut for killing a program?

    System --> Preferences --> Keyboard Shortcuts

    Click Add. Type the name of the shortcut; whatever you choose is fine.
    In the Command field, type xkill.

    Click Apply. To assign a keyboard shortcut, just click on where it says "Disabled" and assign the new shortcut.

  4. #4
    Join Date
    Jul 2007
    Location
    India
    Beans
    449
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Keyboard shortcut for killing a program?

    I prefer the old terminal approach.

    ps -eaf | grep "name of the progra"
    This returns a process id.
    kill "process id returned"

    Though xkill is also a easier, more modern option.
    Ultimately isn't the world round.

  5. #5
    Join Date
    Feb 2008
    Location
    readlink("/proc/self/exe"
    Beans
    1,120
    Distro
    Ubuntu Development Release

    Wink Re: Keyboard shortcut for killing a program?

    Quote Originally Posted by i.mehrzad View Post
    I prefer the old terminal approach.

    ps -eaf | grep "name of the progra"
    This returns a process id.
    kill "process id returned"

    Though xkill is also a easier, more modern option.
    pkill firefox
    is a more efficient way.
    furthermore:
    killall firefox
    In a world without walls and fences, who needs Windows and Gates?
    Linux is like a wigwam.... no Gates, no Windows but Apache inside!
    http://www.debianadmin.com
    apt-get install libstdc++6-4.3-doc

Tags for this Thread

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
  •