find process by id linux code example
Example 1: linux processes and display process name
#Only processes that are started from the current shell
ps
#To get information about all processes running on the system
ps -A
#This displays all processes running for all users on your system
ps aux
Example 2: how to get process id in linux
lsof -i tcp:3000
kill -9 pId
Example 3: inspect a pid in linux
ps -Flww -p THE_PID