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.
I am really surprised they are using essentially off-the-shelf USB cameras. I guess if it works, it works, but surprising that they didn't need to design circuitry to work in a space environment.
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.