Fun fact - the cameras that captures Perseverance's landing are also Linux based and vim is installed - at least on the later model that I worked with.
See EDLCAM in https://link.springer.com/article/10.1007/s11214-020-00765-9
I am guessing the requirements for circuitry operating on Mars isn't quite as much as a spacecraft or satellite, but it is still getting hit with cosmic particles and solar radiation with no atmosphere.