Skip to content

Instantly share code, notes, and snippets.

@jtommi jtommi/filewatcher.sh
Last active Feb 2, 2019

Embed
What would you like to do?
Simple script that watches for created, deleted, modified or moved files within the specified folder. It uses inotify-tools
#!/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
You can’t perform that action at this time.