Debian系统可通过以下工具监控文件系统:
inotifywait -m -r /path
fswatch -r /path
watch -n 2 ls -l /path
watchdog
根据需求选择工具,inotify-tools和fswatch适合大多数场景。
inotify-tools
fswatch