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