47

GitHub - zevv/lsofgraph: lsof to graphviz

 6 years ago
source link: https://github.com/zevv/lsofgraph
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

A small utility to convert Unix 'lsof' output to a graph showing FOFO and UNIX interprocess communication.

Generate graph:

sudo lsof -n -F | ./lsofgraph | dot -Tjpg > /tmp/a.jpg

or add 'unflatte' to the chain for a better layout:

sudo lsof -n -F | ./lsofgraph | unflatten -l 1 -c 6 | dot -T jpg > /tmp/a.jpg

example output


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK