nmap is a command line tool, scanning for open ports on your system.

Use it like this: nmap -sT -O localhost