netstat command can be used to know all ports opened currently.
-a short form of '--all'
-t or --tcp for tcp connection
-u or --udp for udp connection
-n for numeric presentation
netstat -aun for all udp connection
netstat -ltn for all ACTIVE tcp connections
netstat -lun for all ACTIVE udp connections
command
netstat <option>
option:-a short form of '--all'
-t or --tcp for tcp connection
-u or --udp for udp connection
-n for numeric presentation
Example
netstat -atn for all tcp connectionnetstat -aun for all udp connection
netstat -ltn for all ACTIVE tcp connections
netstat -lun for all ACTIVE udp connections
thats very techie friendly
ReplyDeleteThank you @dpirsm
Delete