Leaving with Nothing
Home
Friday, April 1, 2016
Monitoring process creation on Linux
Here's a quick one liner to show a list of running processes, reverse ordered by how long they've been running:
# while true; do sleep 0.5; ps --ppid 2 -p 2 --deselect -o pid,cmd,etime= --sort -etime ; done
You can increase the sleep time if desired, this is waiting half a second between iterations.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment