Skip to content

Instantly share code, notes, and snippets.

@jtommi
jtommi / filewatcher.sh
Last active August 22, 2020 16:16
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