Where does CLion store its default configuration files?

I want to create a script that uses CLions default file templates, for example “C++ Class Header.h”.
I use a linux.

As far as I can tell it shows up in 
if you change the default:
~/.config/JetBrains/CLion2023.3/fileTemplates/internal/'C++ Class Header.h'  

if you chage the project:
.idea/fileTemplates/internal/'C++ Class Header.h'  

If you don't change the default it cannot be found anywhere, I checked with a find command.
So is it under a different name or something?