Skip to content

Instantly share code, notes, and snippets.

@c0mpiler
Created October 7, 2016 22:42
Show Gist options
  • Save c0mpiler/e59ebf04a872ad2c1211ceab43f378bb to your computer and use it in GitHub Desktop.
Save c0mpiler/e59ebf04a872ad2c1211ceab43f378bb to your computer and use it in GitHub Desktop.
cd /proc
for pid in [0-9]*
do
echo "PID = $pid with $(ls /proc/$pid/fd/ | wc -l) file descriptors"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment