Unix Command - echo


echo is a command in Unix (and by extension, its descendants, such as Linux) and MS-DOS that places a string on the terminal. It is typically used in shell scripts and batch programs to output status text to the screen or a file.

$ echo This is a test.
This is a test.

$ echo "This is a test." > ./test.txt
$ cat ./test.txt
This is a test.