Found this. As I am still hasitating with IOT in general as a concept this seems to be a refreshing way. I'll present to you a unix for IOT:
Homepage: http://www.fuzix.org/ Orig: https://github.com/EtchedPixels/FUZIX Fork: https://github.com/davidgiven/FUZIX/tree/esp8266
So it's ported to the brand new Raspberry Pico and also to esp8266.
https://www.raspberrypi.org/blog/how-to-get-started-with-fuzix-on-raspberry-pi-pico/