The actual location of each configuration file can be asked directly to the PostgreSQL server, as shown in this example:
postgres=# SHOW config_file;
This returns the following output:
config_file
------------------------------------------
/etc/postgresql/10/main/postgresql.conf
(1 row)
The other configuration files can be located by querying similar variables: hba_file and ident_file.