Working with PostgreSQL service

Which of these commands can you use to check whether PostgreSQL service is running on Linux machines(Ubuntu destro)?

Options
  1. sudo service status -postgresql
  2. sudo service postgresql status
  3. sudo service postgresql -all
  4. sudo service postgresql -status

Related Posts

Close Bitnami banner
Bitnami