What Is Echo in Unix Command?
Contents

What does echo command do in Unix?

In computing, echo is a command that outputs the strings it is being passed as arguments. It is a command available in various operating system shells and typically used in shell scripts and batch files to output status text to the screen or a computer file, or as a source part of a pipeline.

What is echo command in UNIX with examples?

Declare a variable and echo its value. For example, Declare a variable of x and assign its value=10. Note: The ‘-e’ option in Linux acts as interpretation of escaped characters that are backslashed.
…
echo Options.

Options Description
\ backslash
n new line
r carriage return
t horizontal tab
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest