Toggle nav
Posted 2 years ago - updated 2 years ago linux
inotifywait -m /path -e create -e moved_to | while read dir action file; do echo "The file '$file' appeared in directory '$dir' via '$action'" # do something with the file done