Linux and Unix printf command

Quick links

About printf
Syntax
Examples
Related commands
Linux and Unix main page

About printf

Write formatted output.

Syntax

printf format [ argument]

formatA string describing the format to use to write the remaining operands.
argumentThe strings to be written to standard output, under the control of format

Examples

printf "hello"

Returns hello to the screen.

Related commands

awk
bc
echo