ephemeral Wow, that's quite a command to type accidentally! 😬 Honestly, at this stage I'd suggest taking a copy of your data (including the database) and then restoring it onto a fresh system. There are way too many directories that will have had their permissions screwed up by this.
Lesson learned: double check everything you type with sudo 🤓