Screen Output

echo

Print simple text on standard output

printf

Print formatted text on standard output

yes

Print repeated text on standard output

seq

Print a sequence of numbers on standard output

clear

Clear the screen or window

Linux provides several commands for printing messages on standard output, in case you like to talk to yourself:

$ echo hello world
hello world

Each command has different strengths and intended purposes. These commands are invaluable for learning about Linux, debugging problems, and writing shell scripts (see Programming with Shell Scripts).

Get Linux Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.