Tuesday 15, Apr 2025
We are moved to new domain
Click -> www.ehowtonow.com
Saturday, 26 August 2017

echo - Linux Command

echo

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:

\a
Alert (bell).

\b
Backspace.

\c
Suppress trailing newline.

\f
Form feed.

\n
Newline.

\r
Carriage return.

\t
Horizontal tab.

\v
Vertical tab.

\\
Literal backslash.

\nnn
The octal character whose ASCII code is nnn.

Options

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

-E
Disable character sequences with special meaning.

-n
Suppress printing of newline after text.

--help
Print help message and then exit.

--version
Print version information and then exit.

Examples

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

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer

Related Posts:

  • paste Linux Command paste paste [options] files Merge corresponding lines of one or more files into tab-separated vertical columns. Use - to read from standard input, instead of specifying a file. See also cut, join, and pr. Options -dchar, … Read More
  • showkey Linux Command showkey showkey [options] Print keycodes, scancodes, or ASCII codes of keys pressed on the keyboard. The default is to show keycodes. In keycode and scancode mode, the program terminates 10 seconds after the last key is pr… Read More
  • iptables Linux Command iptables iptables command [options] System administration command. Configure netfilter filtering rules for kernels 2.4 and later. Rules for iptables consist of some matching criteria and a target, a result to be applied if… Read More
  • mcopy Linux Command mcopy mcopy [options] sourcefile target Copy files between Unix and MS-DOS format partitions. See cp and mtools for more information. Multiple source files can be specified and written to a target directory. Options The m… Read More
  • lockfile Linux Command lockfile lockfile [options] filenames Create semaphore file(s), used to limit access to a file. When lockfile fails to create some of the specified files, it pauses for eight seconds and retries the last one on which it fa… Read More
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: echo - Linux Command Rating: 5 Reviewed By: eHowToNow