Lurker News
Hi HN,

I built a small Linux CLI tool called witr (Why Is This Running?).
The idea came from a situation most of us have hit: you log into a machine, see a process or port running, and immediately wonder why it exists, who started it, and what is keeping it alive right now.
witr traces a process, service, or port back to its origin and responsibility chain and explains it in a way that’s quick to read, especially when you’re debugging under pressure.
This is v0.1.0. It’s intentionally small and focused. Feedback, criticism, and edge cases are very welcome.
Repo: https://github.com/pranshuparmar/witr

Comments (105) 32 threads

Earlier comments
fooqux3 replies#
This is amazing. Thank you for sharing this.

Do you have any qualms about me making an entry in the AUR for this?

giancarlostoro#
Im not the author but I would love for an AUR made for this ;)

My favorite thing about arch is how insanely quickly AURs pop up for interesting tools.

pranshuparmar#
Thanks! Really appreciate it. No qualms at all — an AUR entry would be awesome!
fooqux#
No, wasn't me. Was planning on taking care of it after the holidays were finished. Someone beat me to it!
pranshuparmar#
Quick update: witr now supports Linux, macOS, Windows, and FreeBSD.
saidnooneever1 reply#
seems handy but mostly the ppid is outputted as the reason for starting. its 'who dun it', not really _why_ it was started. (service file, autorun, execve etc.)

i see you support multiple output format including json thats nice. id recommend to assume automation (ssh script/commands) and make the default output really easily greppable , or json (jq) since itll be more appealing to parse (shouldnt reduce readability, for the default output it looks like just removing some linebreaks to make it parse more consistently. (maybe the lines are wrapped tho? unclear from the img)

pranshuparmar#
Thanks for the feedback! I’ll look into showing who and why in a more distinct way. The default output is human-first, hence some extra line breaks, but the JSON flag is already there for automation. We can also see if it can be made more easily greppable.
techsystems1 reply#
I'm really loving this!

'Responsibility chain' will become a trendy phrase.

pranshuparmar#
Haha, glad you like it! Maybe "responsibility chain" will catch on.

Load more comments