how to start psql in linux

C++
sudo service postgresql start
# To start the postgresql servicebrew services start postgresql
brew services stop postgresql
sudo service postgresql-9.3 initdb
Source

Also in C++: