Forrest logo
back to context overview

inotifywait

List of commands for inotifywait:

  • inotifywait:ai:3fc30 inotifywait event new or modify file
    $ inotifywait -m -e create,modify ${directory}
    try on your machine
    explain this command
  • inotifywait:ai:586d1 How to re-run a command when files in a directory are updated
    $ inotifywait -m ${directory} -e modify -e create -e delete | while read -r directory event file; do ${YOUR_COMMAND_HERE}; done
    try on your machine
    explain this command
  • inotifywait:ai:85ed1 inotifywait event new file
    $ inotifywait -e create -m ${directory}
    try on your machine
    explain this command
  • inotifywait:ai:a29b3 inotifywait with a sambashare
    $ inotifywait -m /path/to/sambashare
    try on your machine
    explain this command
  • inotifywait:tldr:1806e inotifywait: Watch a directory recursively for events.
    $ inotifywait --monitor --recursive ${path-to-directory}
    try on your machine
    explain this command
  • inotifywait:tldr:18f90 inotifywait: Run a command when a file is accessed.
    $ inotifywait --event ${access} ${filename} && ${command}
    try on your machine
    explain this command
  • inotifywait:tldr:2e033 inotifywait: Watch a directory for changes, excluding files, whose names match a regular expression.
    $ inotifywait --monitor --recursive --exclude "${regular_expression}" ${path-to-directory}
    try on your machine
    explain this command
  • inotifywait:tldr:66a25 inotifywait: Watch a file for changes, exiting when no event occurs for 30 seconds.
    $ inotifywait --monitor --timeout ${30} ${filename}
    try on your machine
    explain this command
  • inotifywait:tldr:8c091 inotifywait: Watch a specific file for events, exiting after the first one.
    $ inotifywait ${filename}
    try on your machine
    explain this command
  • inotifywait:tldr:925b0 inotifywait: Only watch a file for file modification events.
    $ inotifywait --event ${modify} ${filename}
    try on your machine
    explain this command
  • inotifywait:tldr:b3271 inotifywait: Watch a file printing only events, and no status messages.
    $ inotifywait --quiet ${filename}
    try on your machine
    explain this command
  • inotifywait:tldr:fa47a inotifywait: Continuously watch a specific file for events without exiting.
    $ inotifywait --monitor ${filename}
    try on your machine
    explain this command
back to context overview