echo

The shell command that prints its arguments as a line of text.

In more detail

On its own it writes to the terminal. With redirection it writes into a file, and >> appends a copy every time the command runs.

Examples

echo "listen 8080" >> by-hand/server.conf
ansible all -m ansible.builtin.command -a "echo hello" reports changed every time, because the command module cannot tell what a command did.
echo "hello, $name"
echo "exit code $?"

Related terms

Taught in

References

Certification courses