Skip to content
USAFA

Garland Joseph

Technology Architecture

Example Unix and Windows/Powershell Network Socket Table Commands

October 7th, 2016 | Garland Joseph

What tcp sockets are open?

Unix

netstat -an | egrep -I “^tcp.*LISTEN”
netstat -an | egrep -I “^tcp.*LISTEN” | awk ‘{split($4,a,”:”);print a[2]}’

Powershell

netstat -an | select-string listem
Author adminPosted on September 18, 2023January 8, 2024Categories Networking, Powershell, Unix, WindowsTags Networking, Powershell, Unix, Windows

Post navigation

Previous Previous post: Windows SNMP
Next Next post: Contents

Recent Posts

  • The Best Guitar Player in Texas
  • George’s Song
  • The Weave Remembers
  • Nothing New Under the Sun
  • George Orwell in 2025

Categories

  • AIX
  • Arista
  • Essays
  • ExtraHop
  • Here's a Good One
  • IOS
  • Linux
  • Networking
  • packet capture
  • Powershell
  • snmp
  • sql
  • SSL
  • Tags
  • technical leadership
  • Telemetry
  • Unix
  • USAFA
  • Windows
Garland Joseph Proudly powered by WordPress