pid in ubuntu code example Example 1: how to get process id in linux lsof -i tcp:3000 kill -9 pId Example 2: how to get pid of ubuntu put in something