Install Fswatch On A Debian, Ubuntu, Kali And MacOS
Install fswatch
-
Debian
apt-get install fswatchClick to copy -
Ubuntu
apt-get install fswatchClick to copy -
Kali Linux
apt-get install fswatchClick to copy -
macOS
brew install fswatchClick to copy
A cross-platform file change monitor.
How to use fswatch?
Below are few example commands for fswatch that you can use in the terminal.
Run a bash command on file creation, update or deletion:fswatch path/to/file | xargs -n 1 bash_commandClick to copyWatch one or more files and/or directories:fswatch path/to/file path/to/directory path/to/another_directory/**/*.js | xargs -n 1 bash_commandClick to copyPrint the absolute paths of the changed files:fswatch path/to/directory | xargs -n 1 -I {} echo {}Click to copyFilter by event type, eg. Updated, Deleted or Created:fswatch --event Updated path/to/directory | xargs -n 1 bash_commandClick to copy
Installation of latest fswatch command is available for Debian, Ubuntu, Kali and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.




