in directory a
I ran a Python process named basic.py
and then I ran another Python process in directory b
named basic.py
too. And I want to kill the process ran in directory b
, however when I used ps -ef | grep basic.py
, I couldn't tell which one to kill?
$ ps -ef | grep basic
doom 38218 1 99 Jul15 ? 2-17:27:30 python3 basic.py
doom 39222 1 99 Jul15 ? 5-14:21:03 python3 basic.py
How can I get the directory and kill that process?