Tag: pid

Show All Network Services

Show all network services listening on the system and their PID netstat -tupl

Show Active Network Connections

Show all active network connections and their PID netstat -tup

Pid Command

Create a command that will return the pid of the given command string.. #!/bin/sh ps aux|grep 1|head -n1|awk ‘{print2}’