linux find process code example Example 1: show all processes linux ps -aux | less Example 2: how to get process id in linux lsof -i tcp:3000 kill -9 pId