
In this article, we are going to teach you How to Install and Run Netstat on Fedora 33. The Netstat command, which stands for Network Statistics is a command-line program to get network status. Netstat doesn’t feature a graphical user interface.
How to Install and Run Netstat on Fedora 33
In the next section, we will introduce you to the concept of Netstat. Then, in the rest of this post, we will teach you how to install Netstat on Fedora 33. Stay with us to learn how to install and run Netstat in the rest of this article.
What is Netstat?
Netstat is a command-line utility used by system administrators for analyzing network statistics and is a program that is controlled via commands issued in the command line. It delivers basic statistics on all network activities and informs users on which ports and addresses the corresponding connections are running and which ports are open for tasks.
In 1983, Netstat was first implemented in Unix-derived BSD. Netstat was first integrated into Linux in 1991 and has been present in Windows since version 3.11 was released, which can also communicate via TCP/IP with the help of extensions. It should be noted that Netstat displays a whole manner of statistics such as open ports and corresponding addresses on the host system, routing table, and masquerade connections.
How to Install Netstat on Fedora 33
Note that the Netstat command is provided by the net-tools package on Fedora servers. In the first step, you should open a new terminal and log into your Linux VPS server via SSH as a root user or as a sudo user.
Now you can install Netstat on Fedora 33 server by entering the following command:
sudo dnf install net-tools
If you asked for confirmation, you should enter “y” and then press “Enter“:
Install 1 Package Total download size: 305 k Installed size: 989 k Is this ok [y/N]: y
Next, Run the following command to verify the installation by checking the netstat version:
netstat -V
How to Download and Install Netstat rpm on Fedora 33
First, you should log in to your Fedora 33 server as root.
Now enter the following command to download the net-tools package. This command downloads the net-tools package from the fedoraproject.org website:
wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/32/Everything/x86_64/os/Packages/n/net-tools-2.0-0.56.20211201git.fc32.x86_64.rpm
Also, you can download the rpm file by entering the following command:
rpm -ivh net-tools-2.0-0.56.20211201git.fc32.x86_64.rpm
If you use the above command to install, you should download and install dependencies manually. To do this, run the following command:
dnf install net-tools-2.0-0.56.20211201git.fc32.x86_64.rpm
How to Run Netstat on Fedora 33
You can find services that run on various ports by entering the following command:
netstat -tulpn
This allows you to identify if the service is listed on each port.
Command parameters include:
t: is used to print TCP connections
u: is used for printing UDP connections
l: Print all listening server sockets
p: Print all PID/Program names for sockets
n: Don’t resolve names from IPs
Conclusion
Netstat command is used on Linux servers to see the incoming and outgoing network connections and other network-related information. This article taught you how to install and run Netstat on Fedora 33.
No Comments