This Linux echo command tutorial teaches you how to display text and variables and turn on and off backslash escape sequences with examples and syntax. FactorPad Linux Essentials playlist covers your first 100 commands with examples.

Find the code here:

Linux Essentials web page:

Don’t lose this valuable resource, subscribe today. Happy Learning!

Let’s connect!
Email lists :
Facebook:
Twitter:
Pinterest:
YouTube:
LinkedIn:

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

3 Comments

FactorPad

April 28, 2020

New in July 2017! Find all of the code examples on our website. See link in Description.

Reply

FactorPad

April 28, 2020

From 2:32 to 2:49 I showed an example of using double-quotes and single-quotes.  You need to know more though.  Within double quotes variables will be interpreted; however, with single quotes they won't.  So the text within single quotes will be echoed literally.  Play with it on your end so this nuance sinks in and let me know here if you have questions.  -Paul

Reply

FactorPad

April 28, 2020

In the first example at 2:15, Linux took "echo – – help" literally and echoed what came after the echo command.  Why is this happening?  Well it won't happen on all systems, and the short answer is that it has to do with built-ins that don't pull the appropriate help, so the workaround is to call the program and option using "/path/echo – – help".  I hope that helps.  -Paul

Reply

Leave a Reply