Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux bash connect to postgres

#!/bin/bash
sudo -u postgres -H -- psql -d database_name -c "SELECT c_defaults  FROM user_info WHERE c_uid = 'testuser'"
Comment

PREVIOUS NEXT
Code Example
Shell :: how to remove a software from linux 
Shell :: shell sort algorithm complexity 
Shell :: minishift admin-user addon 
Shell :: how to sort tags on git tag 
Shell :: change wallpaper command line linux 
Shell :: install geopandas in jupyter notebook 
Shell :: vue-cli-service not found linux 
Shell :: brew upgrade 
Shell :: rstudio find out if package is installed 
Shell :: heroku ubuntu install 
Shell :: install yarn on ubuntu 
Shell :: find logs in kubernetes pods 
Shell :: Backup Restore and Upgrade Gitlab 
Shell :: powershell output array as table 
Shell :: git checkout branch 
Shell :: github cli 
Shell :: debian mongodb 
Shell :: how to update your local repository 
Shell :: xrdp choose desktop environment 
Shell :: docker auto start when reboot 
Shell :: shorten the linux terminal path 
Shell :: install docker ubuntu 20 
Shell :: clone at a given commit github 
Shell :: git add 
Shell :: How do I undo the most recent local commits in Git? 
Shell :: restore staged github 
Shell :: how to update application in ubunut 
Shell :: Download Kubectl - latest release 
Shell :: read the file from shell 
Shell :: c# powershell 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =