gwhois command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gwhois: command not found
or when using sudo you get the following error message
sudo: gwhois: command not found
Solutions to gwhois: command not found
How To Fix gwhois: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gwhois is provided by gwhois package.
gwhois is:
gwhois is a generic whois client / server. This means that it know for many (virtually all) TLDs, IP-Ranges and Handles out there where to ask. It queries other whois-servers as well as web-lookup forms.
gwhois can be used as a client, but you can invoke it as a server (e.g. via inetd) as well for usage with a normal whois client.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gwhois
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gwhois.
sudo apt -y install gwhois
Or if you have aptitude installed you can use the following command.
sudo aptitude install gwhois
Summary
In this tutorial we learn how to fix gwhois command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.