fswatch is a cross-platform, file change monitor that gets notifications when the contents of the specified files or directories are changed/modified in Linux.