Next: , Previous: , Up: Command-line and menu entry commands   [Contents][Index]

16.3.24 echo

Command: echo [-n] [-e] string …

Display the requested text and, unless the -n option is used, a trailing new line. If there is more than one string, they are separated by spaces in the output. As usual in GRUB commands, variables may be substituted using ‘${var}’.

The -e option enables interpretation of backslash escapes. The following sequences are recognised:




alert (BEL)


suppress trailing new line


form feed


new line


carriage return


horizontal tab


vertical tab

When interpreting backslash escapes, backslash followed by any other character will print that character.