listen command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
listen: command not found
or when using sudo you get the following error message
sudo: listen: command not found
Solutions to listen: command not found
How To Fix listen: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu listen is provided by ruby-listen package.
ruby-listen is:
This Ruby library listens to file modifications and notifies you about the changes.
It detects file modification, addition and removal, and supports multiple directories from a single listener. It uses checksum comparison for modifications made under the same second, and allows supplying regexp-patterns to ignore and filter paths for better results.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-listen
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-listen.
sudo apt -y install ruby-listen
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-listen
Summary
In this tutorial we learn how to fix listen command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.