When you want to check all of open ports out on your linux machine.
Command or the name of utilities on Linux is very easy to be forgotten. netstat is useful to retrieve various networking-related data structure. I usually use this command to check what port is open on my machine.
netstat -anp | grep LISTEN
If you want more information abut netstat, just google it, or type “man netstat” on your linux, or click here.