The Echo Command in Linux!

Published: 18 July 2020
on channel: Generaliized
50
5

Today, we learn about the Echo Command on Linux! This is one of the most simplest commands in all of Linux itself.



You basically type 'nano' to access the text editor. When you are done, you click enter to run what you have just told it to. In this case, it would lead us to the nano text editor where we can write our programs. Right now, we want to write the 'Echo' program. The command itself is 'echo' so you just type it and then you type the phrase that you want it to print out! But be sure to put quotations around it otherwise it will give you an error! Now we click Ctrl+X to try to exit the file. Before we do, it asks us if we want to save it. Click 'Y' for 'Yes' and 'N' for No. I clicked Y because I wanted to save it. Now I go back to the command prompt and I give myself permissions using 'chmod +x [file name]' which in this case would be, "chmod+x Echo5.sh." It then ran the text file and said to itself, "OK! Human wants me to print out 'Hello, World!' into the command prompt!" And boom, it printed out 'Hello, World!'


On this page of the site you can watch the video online The Echo Command in Linux! with a duration of hours minute second in good quality, which was uploaded by the user Generaliized 18 July 2020, share the link with friends and acquaintances, this video has already been watched 50 times on youtube and it was liked by 5 viewers. Enjoy your viewing!