Linux config file location?

On ubuntu 20.04 server I installed ipfs via snap and cannot start the daemon due to a port conflict on port 8080. As I understand it this can be changed by editing ~/.ipfs/config but I have no such file also unable to find a directory anywhere on the file system name .ipfs Does the daemon have to run successfully for this file to be created?

Have you looked inside ~/snap ?

It is there, thx. I was looking in /snap not ~/snap