oreilly.comSafari Books Online.Conferences.


Linux in a Nutshell

This directory of Linux commands is from Linux in a Nutshell, 5th Edition.

Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.

Buy it now, or read it online on Safari Bookshelf.


echo [options] [string]

Send (echo) the input string to standard output. This is the /bin/echo command. echo also exists as a command built into bash. The following character sequences have special meanings:


Alert (bell).




Suppress trailing newline.


Form feed.




Carriage return.


Horizontal tab.


Vertical tab.


Literal backslash.


The octal character whose ASCII code is nnn.



Enable character sequences with special meaning. (In some versions, this option is not required in order to make the sequences work.)


Disable character sequences with special meaning.


Suppress printing of newline after text.


Print help message and then exit.


Print version information and then exit.


/bin/echo "testing printer" | lp /bin/echo "TITLE" > file ; cat doc1 doc2 >> file /bin/echo "Warning: ringing bell \a"

Linux Resources
  • Linux Online
  • The Linux FAQ
  • Linux Kernel Archives
  • Kernel Traffic

  • Sponsored by: