sudo netstat -plan | grep 5432
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 32409/postgres
tcp6 0 0 :::5432 :::* LISTEN 32409/postgres
unix 2 [ ACC ] STREAM LISTENING 341107 32409/postgres /var/run/postgresql/.s.PGSQL.5432
<code>