Skip to content

Instantly share code, notes, and snippets.

@defanator
Created October 26, 2022 18:15
Show Gist options
  • Save defanator/712ee09b2a4053e210cea4b097897e5d to your computer and use it in GitHub Desktop.
Save defanator/712ee09b2a4053e210cea4b097897e5d to your computer and use it in GitHub Desktop.
find services using deleted libraries
#!/bin/bash
PIDS=$(ps h --ppid 2 -p 2 --deselect | awk '{ print $1}' | xargs)
for P in $PIDS
do
lsof -p $P | grep DEL | egrep -v "/dev/|/\[aio\]|/SYSV|/memfd:"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment