5 ms·
hehe.. lsof | grep bad.log ps -ef | grep (pid) sudo apt remove python3 kill -9 (pid)
by totetsu 4y ago
hehe..
lsof | grep bad.log
ps -ef | grep (pid)
sudo apt remove python3
kill -9 (pid)
- deleted 4y ago[deleted]
- tripdout 4y agoI 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.
- totetsu 4y agolsof 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