Configuration yaml by command line

Hi. I rebooted HA on my nuc, after I added the configuration6yaml in file editor (added the http sectin for ducnk dns)
Now I can’t connect to home assistant anymore.
When i connect it to my tv I can see it boots and has an ip adres.
Can I acces my configuration yaml by this command line? Or restore a backup?

Technically both but vi might be the only file editor available. Not sure any others come packaged with HAOS and none can be installed.

If you want to edit your config via the command line you can find it in /mnt/data/supervisor/homeassistant. This is the folder that is mounted as /config in the HA container.

To restore a backup first type ha backups to list all available backups. Find the slug of the one you want to restore them do ha backups restore <slug>. That will do a full backup restore, if you just want to partially restore a backup type ha backups restore -h to see the available options for how to restore specific pieces from a backup.

Thanks
With /mnt/data/supervisor/homeassistant I get permissions denied
With restore a backup I get an unknown error, see supervisor
I don’t know how too see it

When I try to acces by browser, I see connection refushed

Edit: I tried agina a couple of times. It worked!! Thanks so much