Forrest logo
back to the ls tool

ls:ai:bb455

How to re-run a command when files in a directory are updated using entr
$ ls | entr ${your command here}
try on your machine

This command monitors the files in the current directory and executes whenever any of the files are updated.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • How to re-run a command when files in a directory are updated using entr?
back to the ls tool