To find a running process on the machine the
pgrep-command (Note: Just using
ps | grep will not yield good results):
$ pgrep [process] USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ...
[process] is the name of the process you want to find. The name of the executable can be a good start for guessing the name if you’re not sure.
In the resulting output, find the
PID of the process. Then, the
kill-command can be used to end it:
# gracefully: $ kill -SIGTERM [pid] # force $ kill -SIGKILL [pid]
This will then end the specified process.
If the process you need to kill is owned by a different user, adding
sudo might be necessary.