Here is the video version, if you prefer it:
echo command is used to print its arguments to standard output. (Ward, 2014) “Standard output” is, in most cases, another word for “your monitor”.
It is used like this:
mislav@mislavovo-racunalo:~$ echo Wondering my usefulness, reader? Well, I will be useful later on, for now, just remember that I exist!
Wondering my usefulness, reader? Well, I will be useful later on, for now, just remember that I exist!
Oh my God, the command can talk! It is actually accurate in what it said – it is useful, but later when you learn about things such as expansions of shell globs. But that’s for another post.
Hope you learned something useful!
Ward, B. (2014). How Linux Works: What Every Superuser Should Know (2nd ed.). No Starch Press. Page 16
Subscribe to my newsletter to keep abreast of the interesting things I'm doing. I will send you the newsletter only when there is something interesting. This means 0% spam, 100% interesting content.