Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 841 Bytes

echo.md

File metadata and controls

50 lines (38 loc) · 841 Bytes
title description created updated
echo Linux Command
echo Linux Command used to output text to screen. This is available in most of the operating systems along with Linux systems.
2019-09-12
2019-09-12

echo Linux Command used to output text to screen. This is available in most of the operating systems along with Linux systems.

Syntax

echo [option(s)] [string(s)]

Examples

echo Hello World! #=> Hello World!
x=5
echo $x #=> 5
x=8
echo x value is $x #=> x value is 8
echo Hello \nWorld! #=> Hello
                    #   World!

Note: \n is for new line

echo Hello \tWorld! #=> Hello   World!

`Note: \t is for tab

echo * #=> Prints files and folders of current directory
echo *.txt #=> Prints all .txt files from current directory