I'm working with Ubuntu 16 through SSH, and facing an issue with it. I want to kill the process but can't find a way because it keeps changing the PID every time.
I'm using this command to check the process is running or not, here 'geth' is my process name
ps ax | grep geth
It showing me result as follows,
When I try kill the process with process name, it shows that
killall geth
geth: no process found
grep
processes which on-completion automatically dies. Instead of usingps ax | grep process_name
usepgrep process_name
– Kulfy Apr 02 '20 at 06:39geth
running on your machine. What you see is the process of you looking for such a process. Try replacinggeth
byrandomstring00300s0
. – Jos Apr 02 '20 at 10:58