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
gavinray#
The "htop" utility has a "Tree View" if you press F5 that is pretty handy for this, too.
wyldfire1 reply#
`ps uaxf` gives me pretty similar output.
pranshuparmar#
`witr` is trying to be a bit different. Here are few use cases to consider: - When a process started. - Which ports a process is using. - Which user started it. - From which directory it started. - env flag to list all the variables attached to the process. - json flag to use it programmatically.
tototrains2 replies#
Worth mentioning: I had claude code find a crypto miner on an infected system which had been running for ~5 months undetected. Up-to-date windows 10 machine. Single prompt saying "This PC is using too much power or fans, investigate". Took minutes, completely cleaned up the infection (I hope) and identified its source. Fantastic use-case.
jbnorth#
You’re better off wiping and reinstalling the OS than trying to clean the system.
da_grift_shift#
>I hope
fracus1 reply#
I really like this. Something like this should already exist, stock.
pranshuparmar#
Thanks! Funny enough, that was my thought too when creating it.

Load more comments