Netstat help if off the top of memory bank...

Kim Hawtin kim at hawtin.net.au
Wed Jul 4 12:48:39 CST 2012


On 03/07/12 19:47, Rodney Mitchell wrote:
>
> Hiyas,
>
> Used to do this to view connections to specific ports but it no longer
> works after an upgrade (Fedora)
>
>
> `/bin/netstat -p | /bin/grep 100`

Alternatively you can use; lsof

The nice thing this gives you is process owner and pid.

So as root, looking for processes listing;
  # lsof | grep LISTEN

I also specifically look for open connections;
  # lsof | grep ESTABLISHED

Or everything;

  # lsof | grep -e "TCP" -e "UDP"

cheers,

Kim



More information about the linuxsa mailing list