LINUX CLASSES - LINUX COMMANDS
What Does The Echo Command Do?
Is There an echo in Here?
The echo command displays a message on the screen and is primarily useful for programmers writing shell scripts (see "Linux Programming"). But anyone can use echo to show the value of environment variables.
The echo command displays a message on the screen and is primarily useful for programmers writing shell scripts (see "Linux Programming"). But anyone can use echo to show the value of environment variables.
Here are some
examples:
echo $PATH
/usr/bin:/usr/local/bin
echo My name is $USER - Home directory=$HOME.
My name is hermie - Home directory=/home/hermie.
The echo command is very similar to the DOS command of the same name, except that the DOS echo command cannot display
environment variables--it just displays a message.
Previous Lesson: Date and Time
Next Lesson: Spell Checking
[ RETURN TO INDEX ]
Comments - most recent first (Please feel free to answer questions posted by others!)
ranganath ( 22 Jan 2012, 12:31)
can i kmow what work the command echo -n can do???
bahare ( 04 Jan 2012, 03:03)
If u press a keyboard, 1 code is created by system & it can realize which
key is pressed. In reality one person presses 1 key another place & I can
realize its key with finding the code by remote terminal.
Can u help me????
Regards
nasreen ( 04 Dec 2011, 03:04)
If you want to add a line to txt file you can use echo
echo 1111111111>>d/myfiles/mytextfile/data.txt
I utilized ..it worked
iphone 5 ( 10 Sep 2011, 10:14)
Hi there, I believe your website may very well be possessing browser
compatibility concerns. When I appear at your site in Safari, it seems
great but when opening in Net Explorer, it's some overlapping. I just
needed to provide you with a swift heads up! Other then that, wonderful
weblog!
DCB ( 08 Sep 2011, 09:30)
Your first 2 sentences are duplicated on this page.
Majed ( 10 Aug 2011, 07:26)
i thought you typed the first sentence by mistake
praful ( 01 Jun 2011, 04:36)
how many charactor i can write
rahul kaninde ( 31 Jan 2011, 05:49)
yes how simple.......echo
rahul k ( 24 Jan 2011, 07:29)
i like the web site
Murat ( 27 Dec 2010, 10:59)
This is very graet article about vi editor.thanks so much.
systemnotes ( 01 Dec 2010, 20:42)
The DOS echo does display environment variables if you use %VAR_NAME%, as
in: %PATH%. In unix/linux use the $, as in $PATH.
C:\>echo windir = %windir%
windir = C:\WINDOWS
C:\>
Bob Rankin ( 07 Oct 2010, 09:59)
Yes, that was pretty funny. I don't even remember doing it! Yes, that was
pretty funny. I don't even remember doing it!
Echo ( 06 Oct 2010, 11:44)
I thought that was pretty hilarious how you echoed that first sentence on
the subject of the echo command.
Gopi ( 04 Jul 2010, 23:21)
details about asp.net with sql database and its screen shots
neethu ( 03 Mar 2010, 23:29)
how to blink a text using echo.I tried
echo -e "\033[5m hii"
bt didnt worked
I welcome your comments. However... I am puzzled by many people
who say "Please send me the Linux tutorial." This website *is* your Linux Tutorial! Read everything here, learn
all you can, ask questions if you like. But don't ask me to send what you already have. :-)
NO SPAM! If you post garbage, it will be deleted, and you will be banned.
|
Share This With a Friend
|
 |
Copyright ©
by Bob Rankin
All rights reserved - Redistribution is allowed only with permission.