Learn how to install Netcat (nc) on Linux step by step. Perfect for VPS, Rocky Linux, Ubuntu, and CentOS server users. A must-have networking tool.
Netcat, often called the "Swiss Army knife" of networking, is one of the most powerful tools you can use on a Linux system. Whether you are running a Linux VPS or managing your own dedicated server, Netcat helps you with port scanning, file transfers, debugging, and even creating simple chat servers.
sudo apt update
sudo apt install netcat -y
sudo yum install nc -y
sudo dnf install nc -y
nc -h
If the command shows help options, Netcat is installed successfully.
nc -zv domain.com 80
nc -l -p 1234
On the receiving server:
nc -l -p 1234 > receivedfile.txt
On the sending server:
nc server-ip 1234 < myfile.txt
If you are running a Linux VPS from KMWEBSOFT, tools like Netcat help you:
It is lightweight, pre-installed on many systems, and perfect for anyone serious about Linux server management.
Netcat is more than just a networking tool — it is a must-have utility for anyone managing Linux servers. If you are experimenting on a Linux VPS, make sure Netcat is one of the first tools you install.
Looking for a reliable Linux VPS for your projects? KMWEBSOFT offers unmanaged Linux VPS with multiple IPv4 subnets, full root access, and NVMe SSD from $30/month.
Senior Linux Administrator | Connect on LinkedIn
Professional hosting from $5/month. Done-for-you setup. Human support always.