Created
May 4, 2014 18:10
-
-
Save azat/d0cee22b102ae696135c to your computer and use it in GitHub Desktop.
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 -n | awk '{ i = 1; i += !!index($0, "deleted"); i += !!index($0, "TCP"); printf "%i: ", i; for (j = 0; j < i; ++j) { printf "%s ", $(NF-j) }; printf "\n"; }' | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or
lsof -Fp