Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Another quick way is: a) if already know the name of the process you want to kill (suppose gmplayer)
Code:
pkill -9 gmplayer
b) if you want a quick and dirty list of your (as user) processes:
Code:
ps -u user
then after selecting the PID of the process to kill from the list
Code:
kill -9 PID
Moreover you can check for a GUI application. I don't know in Debian, but just to make an example, in my opensuse box running KDE I have KSysGuard which list the processes in a way similar to top, but let me kill them just by pressing the KILL button.
Finally, if you want to kill a hanging graphical application you can open a terminal and type
Code:
xkill
press enter,focus the skull pointer onto the window you want to kill and click the mouse left button. A downside of this funny method is that the parent process, the one that forked the graphic app, doesn't die.
Can you give me some example, because I tried and recived this.
The hint by slacker_et was: press "k" when you already are in the top session. Top has a lot of interactive commands (see the manual page for details) "k" being one of them. Press k, then in the "PID to kill:" line near the newly appeared cursor type the PID of the process to kill and press enter.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.