How to print out a newline character using the echo command?
If you try
It will print out
But if you want the two words separate by an actual newline, you can use
echo -e "foo\nbar"
Output would be
You can combine the "-e" flag with other control characters such as "\t", "\r", "\v"... as well.