ss: find who listens on a port

For local checks, no external scanner is needed.

sudo ss -tulpn
sudo ss -tulpn | grep ':5432'

Verify the result

PID/program should match the expected service.