michaelconnor00
9/7/2017 - 6:21 PM

Network Commands

Sheel commands for searching networks

#Networking

Source: https://www.cyberciti.biz/faq/how-do-i-find-out-what-ports-are-listeningopen-on-my-linuxfreebsd-server/

List all ports being listened to:

netstat -l

To display open ports and established TCP connections, enter:

netstat -vatn

FreeBSD/OS X Unix user try the following command:

netstat -na | grep -i LISTEN
netstat -f inet -na | grep -i LISTEN

lsof Command Examples, To display the list of open ports, enter:

lsof -i