Check which ports are open on Red Hat or CentOS

run this command via the command line and it output the open ports:

nmap -sT -O localhost




Bg