Last active
August 22, 2020 16:16
-
-
Save jtommi/3dcd97818f177e12aee1a17f2063241d to your computer and use it in GitHub Desktop.
Simple script that watches for created, deleted, modified or moved files within the specified folder. It uses inotify-tools
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/sh | |
sudo inotifywait -m -r -e create -e modify -e move -e delete --format '%T - Event: %e - %w%f' --timefmt '%T' /etc /var /home /boot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment