postgres linux install code example
Example 1: postgresql install ubuntu
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo -u postgres createuser --interactive
sudo -u postgres createdb database1
Example 2: install postman in linux
Install Postman in Linux
Download Postman by running following command in your Linux system:
$ wget https://dl.pstmn.io/download/latest/linux64 -O postman-linux-x64.tar.gz
Extract the downloaded file by running the following command in /opt directory:
$ sudo tar -xvzf postman-linux-x64.tar.gz -C /opt
Finally, create a symbolic link running following command in terminal:
$ sudo ln -s /opt/Postman/Postman /usr/bin/postman
For Desktop icons:
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
Example 3: install postgresql ubuntu
sudo apt install postgresql postgresql-contrib
Example 4: linux psql
psql "dbname=dbhere host=hosthere user=userhere password=pwhere port=5432 sslmode=require"