How do I know exactly when a file gets created, modified, or deleted?
Try: inotifywait -m -r -e create,modify,delete,move --timefmt '%Y-%m-%d %H:%M:%S' --format '%T %w%f %e' /var/www Info: inotifywait uses Linux kernel APIs for efficient file monitoring. -m runs continuously, -r recurses through subdirectories, and -e filters the specified events. Examples: $ inotifywait -m -e close_write /uploads | while read path event file; do […]
Read More