lsof to graphviz
Switch branches/tags
Nothing to show
Clone or download
Latest commit abb0856 May 14, 2018
Permalink
Failed to load latest commit information.
.gitignore cleanup Feb 9, 2016
LICENSE Added LICENSE Mar 31, 2018
README.md Update README.md May 14, 2018
example.jpg Updated example.jpg Apr 1, 2018
lsofgraph Added some dot options to make graph more compact Apr 1, 2018

README.md

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

Generate graph:

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

or add unflatten to the chain for a better layout:

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

It seems that Lua was an unfortunate choice, since people keep sending me links to ports in other languages. If you also hate Lua, raise your hand and chack the Python port at https://github.com/akme/lsofgraph-python or the Perl port at https://github.com/tehmoth/lsofgraph.

example output