Created
April 30, 2024 23:14
-
-
Save CommonLoon102/143e09351e1dd1380cc0c3cd47d4604b to your computer and use it in GitHub Desktop.
list connections with processes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof -i4 -i6 +c 15 | grep '(ESTABLISHED)' | tail -n +2 | awk '{ split($9, a, "->"); print $2, $1, $8, a[2] }' | awk '{ printf "%-5s %-15s %-3s %s\n", $1, $2, $3, $4 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment