bash
Copy code
sudo apt update
sudo apt install net-tools
For Red Hat/CentOS/Fedora:
bash
Copy code
sudo yum install net-tools
or
bash
Copy code
sudo dnf install net-tools
After installation, you can use netstat -tunlp to list network connections. If you're using a more modern tool, you might want to use ss:
Debian/Ubuntu:
bash Copy code sudo apt update sudo apt install net-tools For Red Hat/CentOS/Fedora:
bash Copy code sudo yum install net-tools or
bash Copy code sudo dnf install net-tools After installation, you can use netstat -tunlp to list network connections. If you're using a more modern tool, you might want to use ss:
bash Copy code ss -tunlp