echo command in Linux with examples

echo command in Linux with examples.


echo : echo command in Linux is used to display the message. This is a built in command that is mostly used in shell scripts and batch files to output status text to the screen or a file.

echo command in Linux with examples


  • Syntax : echo [option] [string]

This video for echo command in Linux with examples


  • To display the message with echo command.


  • To print the message in output file with echo command.



  • To append the output file with echo command.



  • Options of echo command.
    • NOTE :- -e here enables the interpretation of backslash escapes.

      • b : it removes all the spaces in between the text

      • n : this option creates new line from where it is used. echo -e “Hellow  nWorld”






      • t : this option is used to create horizontal tab spaces.
mukesh.thakur87: