psql -U postgres -c 'SHOW config_file' psql -U postgres -c 'SHOW data_directory'