Categories
Linux Tutorial Series

Linux Tutorial Series – 41 – The echo command

Here is the video version, if you prefer it:

The 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:

echo somethingToEcho

For example:

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!

References

Ward, B. (2014). How Linux Works: What Every Superuser Should Know (2nd ed.). No Starch Press. Page 16

NewsletterUpdates on interesting things I am doing

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.

Leave a Reply

Your email address will not be published. Required fields are marked *