SyntaxFix
Write A Post
Hire A Developer
Questions
It can be due to psql not being in PATH
$ locate psql /usr/lib/postgresql/9.6/bin/psql
Then create a link in /usr/bin
ln -s /usr/lib/postgresql/9.6/bin/psql /usr/bin/psql
Then try to execute psql it should work.