---

How to Use the echo Command in Linux with Examples

The echo command is one of the most basic and important commands in scripting/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, Operating Systems, etc.

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.