Netstat - To show the opened ports

To show what ports are open from ssh run this command

netstat -na | grep 'tcp\|udp' | awk '{print $4}' | cut -d: -f2 | sort | uniq -c | awk '{print $2}'

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install Zend for Linux

1. Download Zend in the server you want to install. Linux 32b -...

How to change MAC address in Linux

First find the physical MAC address of your machine by running the following command : $...

Upgrade php on Plesk

By default Plesk installation, the PHP version is 5.1.x, if you want to upgrade it to 5.2 or even...

CENTOS - How to install the text setup utility

Text Setup Utility is a text based utility that allow you to make some configuration on a linux...

CENTOS - How to add the network configuration tool to the text based setup tool

If you ran setup and it doesn't show the network configuration tool Then run this command on...