License – CC-BY-SA

Beware however that this refers only to parts which are obviously written by me and do not have any other information about licensing. Quoted text, pictures and other content created by others is copyrighted by the corresponding authors. If you are in doubt, ask before republishing any content.

Pages

Short Tip: Kill all user processes

I use the kill command quite often to kill processes left over – the most common usage is actually when I log into a machine via ssh -X and start a KDE 3.5.x program. Quite some processes will remain running afterwards (dcop, kdeinit, etc.) and will not shut down for quite some while.

I’m used to ps -aux|grep kde in such a case to get the process numbers and kill these with kill -9 PID usually, but for several processes this might take some time. It’s faster to kill just all processes which belong the the user of the kill signal:

kill -9 -1

Keep in mind that you will also kill the konsole you are in right now!