http://www.commandlinefu.com/command... - Lists all listening ports together with the PID of the associated process (atoponce) #lsof (via @commandlinefu)