Command Line Basics: echo
I'm starting a new feature called Command Line Basics. In this first installment I'm going to cover the echo command.
The echo command is used for sending text to the standard output. In most cases, the standard output is your terminal. For example, to print the word "echo" to your terminal output, enter the command
Now, echo can take multiple words as input, so if you want to print a line of text, just enter your line of text after the echo command.
You may be asking yourself at this point, "Why would I ever want to do that?" Well, this can come in handy for printing output from script programs. If you've ever done BASIC programming, it's like a print statement.
I'll cover its usage in scripts in a new feature called Bash to Basics.