Basic Echo Command with Examples in Linux | Linux Today

Basic Echo Command with Examples in Linux

Written By
L
LinuxTeck
Nov 18, 2021

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.

L

LinuxTeck

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.