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
scrame#
This is great. One of those things that just formats and does all the little niggling things you have to do sometimes. I like that it is simple, and doesn't (thank god) need npm or some other package manager.

to quote the top comment: just show a screenshot of its results, if its useful its fine, being fast is just gravy.

tacone#
> This project was developed with assistance from AI/LLMs (including GitHub Copilot, ChatGPT, and related tools), supervised by a human who occasionally knew what he was doing.

That's the good part of AI. Lowers effort and knowledge barrier and makes things possible.

properbrew1 reply#
This is extremely useful, will be added to the toolbox. Thanks for sharing.
pranshuparmar#
Thank you, please feel free to share any feedback/ideas.
q2dg1 reply#
pstree doesn't answer the why?
mathfailure1 reply#
No, it does not.
tatref1 reply#
I'm on mobile, so it's not super easy to read the source, but it seems like it only checks for the parent processes?

Also I don't think this approach works correctly, because a disowned/nohup process will show up as PPID 1 (systemd), which is not correct

pranshuparmar#
Yes, this is a bug. Planning to fix it soon.

Load more comments