how to restart psql in linux

C++
sudo /etc/init.d/postgresql restartsudo service postgresql restart
# To restart the postgresql service
Source

Also in C++: