Setup ssh. but sudo not found

I’m in a similar boat where I’m trying to follow tutorials which seem to be outdated for hass.io because these sorts of commands aren’t working. I did read somewhere that because we’re logged into the RPi as ‘root’ we can leave out the ‘sudo’ but same as you, I tried this and still didn’t work