Created
October 9, 2018 14:12
-
-
Save jalex19100/09a756e0fcf0825e7a9dbfac02df9f3c to your computer and use it in GitHub Desktop.
List open file count for all processes by PID
This file contains hidden or 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
| for i in `ps ax| cut -f1 -d\ |sort |uniq`;do echo -n "$i "; lsof -p $i|wc -l; done| sort -k 2 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mac