Linux Mint

How to Install whois Command on Linux Mint 21

The WhoIS command in Linux distributions is used to fetch details about owner and domains of ownership from /user/bin/whois file and display it in the terminal. It searches a wide range of information including user ID, domain name specified in parameters, an IP address from the database.

In simple terms, the WHOIS command-line utility is a protocol that takes queries from users and displays its response in the command-line interface. These queries could be anything like related to contact details, websites, IP addresses of system and domain’s address.

How to Install whois Command on Linux Mint 21

The WHOIS command tool is not a built-in command in the Linux system. The syntax is followed by Linux users to run this utility is:

whois [options] [object]

You can install it by the following guide mentioned below:

Step 1: Updating and Upgrading Repositories

Open the terminal and update the Debian repository before installing whois command tool:

$ sudo apt update

Now upgrade your Linux system using command:

$ sudo apt upgrade

Step 2: Installing WHOIS Command

For Debian-based systems, the apt packages are used to install WHOIS command-line tools. Run the given command in terminal to begin installation:

$ sudo apt install whois

How to use whois Command

Let’s check the working of whois command through few examples:

Example1: To find IP Address Details

To get details of any specific IP address, run the command:

$ whois

Example 2: To find Domain Details

Write the following command to retrieve information regarding registered domain:

$ whois


The WHOIS command is a command-line utility that is used to fetch information from a database about users, IP addresses, domains and display it on terminal. This article has covered how to install the WHOIS command in Linux Mint 21. We have also mentioned a few examples to show its working.

About the author

Syeda Wardah Batool

I am a Software Engineer Graduate and Self Motivated Linux writer. I also love to read latest Linux books. Moreover, in my free time, i love to read books on Personal development.