#!/bin/sh

netstat -tpa

netstat -npa | grep mysqld

lsof -i :3306
lsof -i :7070
lsof -i :8080


Find a PID by file
$ fuser --user ~/example.txt
/home/tux/example.txt:  3234(tux)

fuser -v /dev/snd/*


Find the PID of a running program
pidof bash

Troubleshoot with PIDs
pmap 1261527
