Where is the configuration file located?

LXD doesn’t have config files (its stored in a database) and all changes are made via the lxc command.

The lxc command is just the CLI to the lxd server, whereras the lxc-* commands are for the earlier LXC project which is separate from LXD.

See Active Projects on https://linuxcontainers.org/