Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix echo command

Quick links

About echo
Syntax
Examples
Linux / Unix main page

About echo

Echo's to the screen what you type after echo. Echo is useful for producing diagnostics in command files, for sending known data into a pipe, and for displaying the contents of environment variables.

Syntax

echo [-n] text

-n On BSD and some variants derived from BSD does not begin a new line after the echoed text.
text The text that you want to echo to the screen.

Examples

echo Hello world  

The above example would return "Hello world" to the console

echo * | wc

The above example would list a count of all the files and directories in the current directory. Additional examples relating to this example can also be found on document CH000756.

Related commands

printf
tr

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope