Skip to content

Instantly share code, notes, and snippets.

@metayan
Created September 17, 2023 14:14
Show Gist options
  • Save metayan/0ee5526c964a491a72e16f7047ebb3f4 to your computer and use it in GitHub Desktop.
Save metayan/0ee5526c964a491a72e16f7047ebb3f4 to your computer and use it in GitHub Desktop.
List sshfs leaks on macOS
for p in $(ps ax |egrep sshfs |egrep -v egrep| awk '{print $1}'); do \
printf "%s\t%6s\n" \
$(ps -o command= $p |cut -d: -f 2- |cut -d ' ' -f 2) \
$(leaks $p |egrep TOTAL |cut -d ')' -f 1 |cut -d '(' -f 2 ); \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment