stop postgresql ubuntu code example Example: how to stop psql in linux sudo service postgresql stop # To stop the postgresql service