Last active
December 26, 2015 09:09
-
-
Save njs50/7127861 to your computer and use it in GitHub Desktop.
get number of open file handles by process
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
sudo lsof | perl -lane '$x{"$F[0]:$F[1]"}++; END { print "$x{$_}\t$_" for sort {$x{$a}<=>$x{$b}} keys %x}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment