I am not sure whether this was asked before, but I didn't find a reference in GAP system documentation on how to print the history of the command line (Ubuntu installation).
For instance:
gap> G := Group((1,2)(3,4),(1,2,3));
> irr := Irr(G);
How to save or print the list of my previous commands (similar to history command on Ubuntu).
Many thanks.