# # managing processes under linux
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

managing processes under linux

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.

Some material is very old and may be incorrect today

© October 2005 anonymous

Author: anonymous
Date: Wed Oct 12 04:47:16 2005

How do I kill all processes that are owned by the current user but that are not associated with their current login tty.

I have to run ps before killing any processes and display the output on the screen and kill the required processes then re-run ps to display the processes left after the kill action.

If you found something useful today, please consider a small donation.

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> managing processes under linux

1 comment

Inexpensive and informative Apple related e-books:

Take Control of the Mac Command Line with Terminal, Second Edition

iOS 10: A Take Control Crash Course

Photos: A Take Control Crash Course

Are Your Bits Flipped?

El Capitan: A Take Control Crash Course

More Articles by © anonymous

Wed Oct 12 09:25:29 2005: 1184   TonyLawrence

It depends on how you want to do this. You could use killall -i to do it interactively, or you simply write a script that picks up the "?" processes and kills them.

Something similar to

kill `ps x --deselect T -o pid`

maybe ?

Play with

for i in `ps x --deselect T -o pid` ; do ps -p $i; done

until you see what you want.


Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

We're terrible animals. I think that the Earth's immune system is trying to get rid of us, as well it should. (Kurt Vonnegut)

Linux posts

Troubleshooting posts

This post tagged:



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode