This question has been flagged
3 Replies
5308 Views
Best Answer

Hi Mohit,

To know the place for any installed package you can use locate command.

locate <your lib or package>

In your case you can use .

locate postgresql

To know the list of database running in your system  you can use.

psql -ll

Hope this will help.

Regards,

Anil.

Avatar
Discard
Author

@Thanks.

Best Answer

Hi Mohit,

The easiest way to list all databases, through the terminal is by command:

psql -l 

You can find all command options here.

Best of luck,
Yenthe

Avatar
Discard
Author

I want path in pc, where our all created database stored.

Ahh my apoligies, thought you where literally talking about db names! Mohit has already provided the answer so I won't edit mine. locate will work perfect :)