how to get the pid of a prgram linux terminal code example Example: how to get process id in linux lsof -i tcp:3000 kill -9 pId