O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

$ echo hello world
hello world

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required