Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any way to detect files that are moved by the user across the entire filesystem? I have a file called stuff.js that I want to track the location of (automatically), in case I move it to another folder. I want to do this because I want to create of a script that automatically updates symlinks when a file is moved by the user.

share|improve this question
Someone on Stackoverflow asked a similar question (pertaining to Windows instead of Ubuntu): stackoverflow.com/questions/1576813/… –  Anderson Green Dec 16 '12 at 5:16
It looks like it's possible to use inotifywait to run a command whenever a file's content is changed: stackoverflow.com/a/420172/975097 –  Anderson Green Dec 16 '12 at 5:32
Also, the following node.js library might be useful for this purpose: stackoverflow.com/a/13705878/975097 –  Anderson Green Dec 17 '12 at 0:43
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.