Use netstat:
netstat -tulpn
Or use ss:
TCP ports:
ss -tan
UDP ports:
ss -uan
where the last n is for nummeric.
Add the p to show which process is using the port
Use netstat:
netstat -tulpn
Or use ss:
TCP ports:
ss -tan
UDP ports:
ss -uan
where the last n is for nummeric.
Add the p to show which process is using the port