The echo Command

echo

The echo command prints text. The following command prints Hello World to the screen:

echo "Hello World"

The following command prints Hello World to a file called myfile.txt:

echo "Hello World" > myfile.txt