There is no mechanism to my knowledge of a feature in GRASS to record which commands are run.
Michael