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

hehe..

lsof | grep bad.log

ps -ef | grep (pid)

sudo apt remove python3

kill -9 (pid)



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




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

Search: