printf Linux Commands

What is Linux printf Command?

Explanation

printf COMMAND:

printf command is used to write formatted output.

SYNTAX :


printf format [argument]....

OPTIONS:


The format characters and their meanings are:
b Backspace.
n Newline.
t Horizontal tab
v Vertical tab.

EXAMPLE:


  1. printf "hellon"

    Use 'n' returns 'hello' to the new line.
  2. printf "helblo"
    Output:
    helo

    Here 'b' is used for backspace.

Ask Questions

Ask Question