Syntax
Bash Print Text Syntax
In Bash, print text: prints text to the terminal — echo "Hello"
Quick Answer
- Syntax
echo "Hello"
BashSyntax
Print Text
Prints text to the terminal.
How to print text in Bash
- Open your Bash file or editor.
- Copy the example, then replace its sample names and values for your code.
Bash Print Text Syntax
Use echo "Hello".
Related Syntax References
Frequently asked questions
What is the Bash syntax for print text?
Use this pattern: echo "Hello"
Can I copy this Bash code example?
Yes. Use Copy code and adapt the example to your program.
Is this Bash syntax different on Mac or Windows?
No. The language syntax is the same across operating systems.
Official source · How we verify