I installed postgresql. sudo apt-get postgresql-9.4 I am not able to find, where it was installed. Where is the data folder of the postgres
To find the paths of files installed by a specific package, you can use
dpkg. It is installed by default as part of the base system.
dpkg -L postgresql-9.4
Will give you an exhaustive list.