$ netstat -lantp | grep ESTABLISHED |awk ‘{print $5}’ | awk -F: ‘{print $1}’ | sort -u

find all computer connected to my host through TCP connection.

View this command to comment, vote or add to favourites
View all commands by bitbasher

commandlinefu.com

by David Winterbottom (codeinthehole.com)

Tags: