sudo systemctl restart postgresql code example Example: how to restart psql in linux sudo service postgresql restart # To restart the postgresql service