watchexec
Run arbitrary commands when files change. tldr-pages
On several platforms
Several platforms
Call ls -la when any file in the current directory changes
watchexec ls -laIdentifyRun make when any JavaScript, CSS, and HTML file in the current directory changes
watchexec --exts js,css,html makeIdentifyRun make when any file in the lib or src directory changes
watchexec --watch lib --watch src makeIdentifyCall/restart my_server when any file in the current directory changes, sending SIGKILL to stop the child process
watchexec --restart --stop-signal SIGKILL my_serverIdentifyRestart the execution of a command when any Java source file in the current directory changes, sending SIGKILL and only checking for updates every 10000 ms
watchexec --restart --stop-signal SIGKILL --poll 10000 --exts java commandIdentify