ポートを使用しているプロセス調べる in ubuntu

移転しました。

!!! root で実行しないとプロセス名が表示されないので気をつける
# netstat -A inet -npl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      3182/master     
tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN      9434/apache2  
  :
  :