The echo command
Print a line of text. Prints its arguments separated by spaces, then a new line. Variables such as $HOME are filled in by the shell first. With > or >> you can send the text into a file.
A practice shell in your browser that behaves like bash on Linux for these commands. Nothing you type leaves the page.
Usage
echo [-n] [-e] [TEXT]...
Options
| -n | no new line at the end |
|---|---|
| -e | understand \n (new line) and \t (tab) in the text |
Examples
echo HelloPrints Helloecho "My home is $HOME"Fills in the variableecho milk >> shopping.txtAdds a line to the end of a file