Gerber in linux kicad

It’s not surprising at all. First, the gerber file format has clearly not been designed with edit-save cycle in mind. It’s for exporting from other software, from other formats where the shapes are edited.

My reference there was the geda viewer IIRC. Even that simple task which it can do wasn’t done without rewriting the whole file structure. For most tasks editing the file in place, just replacing some text, would be practically impossible.