====== Print text to console ====== ===== Synopsis ===== echo [-n] [...] ===== Examples ===== === Print "hello world" === echo hello world === Print the boot filename === echo ${filename} === Print the MAC address of interface "net0" === echo MAC address is ${net0/mac} === Ask the user to supply a filename === echo -n Enter boot filename: read filename echo Booting from ${filename} ===== Description ===== Print text to the console. As with all iPXE commands, any [[:settings]] such as ''${filename}'' will be expanded. This allows ''echo'' to be used to display the value of iPXE settings. For example, to display the boot filename obtained via DHCP: iPXE> dhcp DHCP (net0 52:54:00:12:34:56)... ok iPXE> echo ${filename} http://boot.ipxe.org/demo/boot.php If the ''-n'' option is specified, then the trailing newline will not be printed. ===== See also ===== * ''[[:cmd:set]]'' * ''[[:cmd:show]]'' * ''[[:cmd:prompt]]'' * [[:cmd|List of all iPXE commands]]