Echo in Linux Programming

echo command is one of the most commonly and widely used built-in command for linux bash and c shells,that typically used in scripting language and batch files to display a line of text/sring on standard output or a file.

The echo command are used following option to echo command in linux shell programming.

Sr.No

Options

Descriptions

01

-n

do not print the trailing new line

02

-e

enable interpretation of backslash escapes

03

\b

Backspace

04

\n

New Line

05

\t

Horizontal Tab

06

\v

Vertical Tab

07

\r

Carriage Return

Examples

the following all options example

echo


echo "Virtualhax Inc."
						

echo with \n


echo  "Virtualhax Inc."
echo \n "Veewom Technology"
						
Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!