#yum install inotify-tools
apt-get install inotify-tools
# inotifywait -mr ~
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
# echo "hello linux" > /root/tmp.txt
# inotifywait -mr ~
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
/root/ CREATE tmp.txt
/root/ OPEN tmp.txt
/root/ MODIFY tmp.txt
/root/ CLOSE_WRITE,CLOSE tmp.txt
inotifywait -rme modify,attrib,move,close_write,create,delete,delete_self > /root/tmp.txt
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |