Last active
May 10, 2018 12:41
-
-
Save fnzv/c29b9df8098affc52a2c29ec94a2a4a3 to your computer and use it in GitHub Desktop.
monitor-system-files.sh
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
#!/bin/bash | |
find / -xdev | sort > /root/fs-pre-snapshot.txt | |
sleep 2m | |
find / -xdev | sort > /root/fs-post-snapshot.txt | |
diff -daU 0 /root/fs-pre-snapshot.txt /root/fs-post-snapshot.txt | grep -vE '^(@@|\+\+\+|---)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Other ways to "snapshot" permission are: