inotify-hookable command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
inotify-hookable: command not found
or when using sudo you get the following error message
sudo: inotify-hookable: command not found
Solutions to inotify-hookable: command not found
How To Fix inotify-hookable: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu inotify-hookable is provided by inotify-hookable package.
inotify-hookable is:
inotify-hookable is a program that monitor files with Linux inotify. This program accepts options to specify the files to be monitored and the command to run when a file has changed (based in kernel inotify)
inotify-hookable main advantage over inotifywait are:
- command to run after watch can be specified with an option
- emacs and vi backup files are ignored by default
Example:
inotify-hookable -f foo.c -c ‘gcc -o foo foo.c’
To fix this problem, we can install more using the command below.
sudo apt-get -y install inotify-hookable
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install inotify-hookable.
sudo apt -y install inotify-hookable
Or if you have aptitude installed you can use the following command.
sudo aptitude install inotify-hookable
Summary
In this tutorial we learn how to fix inotify-hookable command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.