TCP/IP user commands that may be used to display various network-related information

hostname
Display the name of the local system

ifconfig
Display information about network interfaces (also configure them)

ping
Perform a simple network connectivity test

arp
Display or modify the IP-to-MAC address-translation tables

netstat
Display various network usage statistics

route
Display or modify the static routing tables

traceroute
Determine the route to a specified target host

nslookup
Determine IP address-to-hostname and other translations produced by the Domain Name Service

1 comment:

Anonymous said...

1. How to list the connections to port 80

netstat -alntp | grep :80

2. How to check the number of connections to port 80

netstat -alntp | grep :80 | wc -l

3. How to list the remote IPs connecting to your server on port 80

netstat -alntp | grep :80 | awk '{print $5}' | cut -d: -f1 | sort

4. How to list the uniq remote IPs and the number of connections from each IP

netstat -alntp | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n