I refer to the syntax used by GRUB2, for example when you start a pendrive and you are presented with the GRUB2 terminal.
I would like to redirect the output of the lsmod command to a file in some persistent filesystem (e.g. to view later outside GRUB).
The word command > file
does not work unlike the Linux Shell.
What is the equivalent for GRUB2?
There is nothing on the internet to give me the answer, otherwise I would not have posted the question here.
The documentation of
grub-mount
states [emphasis mine]:My conclusion is it's not possible to save anything to a persistent file from within GRUB.