DEV Community

abhishekjaindba
abhishekjaindba

Posted on

How to Fix Pg_ctl command not found

Sometimes after a fresh PostgreSQL install if we want to start or stop from PostgreSQL rather than controlling the PostgreSQL instance start and stop from the root. And when we run the pg_ctl from the command prompt as a PostgreSQL Linux user we see the error bash: pg_ctl: command not found…

In this article, lets learn how to fix it

As PostgreSQL check your pg base directory

And now add this PostgreSQL to the Linux path so that it’s always available. I would recommand to create a postgresql env. file so that it more easy to handle rather than messing with other systems runing on linux operating system.

see detailed stpes:

https://thedbadmin.com/how-to-fix-pg_ctl-command-not-found/

Top comments (0)