Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I got lucky:

ps ax showed a python3 process running /home/ubuntu/badlog.py, so I knew to kill that. If it wasn't named so obviously it would've been much harder to find it.



lsof is list open files. Good for finding things like what process is writing to a log file. You could also go dig around in /proc




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: