---

Basic Echo Command with Examples in Linux

The echo command is one of the most basic and important commands in scripting and programming. This command displays or prints arguments at the terminal. The command is included in all distributions (operating systems) as either the shell or bash. Usually, developers or programmers use echo commands in both debugging and building of products such as websites, applications, and operating systems.

As part of system administration, we can use the echo command to create shell scripts or batch files. This guide explains how to use the various options for echo commands. All examples of echo commands below were tested on RHEL/CentOS 7.6.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis