Created
February 26, 2018 09:33
-
-
Save vithalsamp/14ae504798aa1997e69fb82b6999f92f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vithal@vithal-Inspiron-3558:~$ pwd | |
/home/vithal | |
vithal@vithal-Inspiron-3558:~$ vi .pgpass | |
vithal@vithal-Inspiron-3558:~$ chmod 600 .pgpass | |
vithal@vithal-Inspiron-3558:~$ ls -la .pgpass | |
-rw------- 1 vithal vithal 97 Nov 30 19:13 .pgpass | |
vithal@vithal-Inspiron-3558:~$ more .pgpass | |
vithalxxxxx.xxxxxx.us-east-2.redshift.amazonaws.com:5439:training:trainee:trainee | |
vithal@vithal-Inspiron-3558:~$ sudo -i -u postgres | |
[sudo] password for vithal: | |
postgres@vithal-Inspiron-3558:~$ psql | |
psql (9.3.20) | |
Type "help" for help. | |
postgres=# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment