check running processes grep linux code example
Example 1: check running process in linux
ps -aux
# (print all processes owned by a user named "x")
Example 2: how to get process id in linux
lsof -i tcp:3000
kill -9 pId
ps -aux
# (print all processes owned by a user named "x")
lsof -i tcp:3000
kill -9 pId