How echo is used in Linux

Source: Internet
Author: User

Tag: Indicates EXT uses TMP this tracking var data length

1.echo commands We often use two of the options, one is -n , indicating that the output does not break after the line. The other is -e that the escape character is handled in a corresponding way, assuming that the -e escape character is treated as if it were normal characters.

Escape character at 2.echo output
\bmeans to delete the preceding space
\nRepresents a line break
\tRepresents a horizontal tab
\vRepresents a vertical tab
\cThe characters after the \c will not be output, and at the same time, the output will not be wrapped.
\rOutput carriage return (but you will find that the character in front of \ R is gone)
\aIndicates the output of a warning sound

Redirection in 3.echo
Ability to output content to a file rather than standard output

echo"hello world!" > test1.tmp

How echo is used in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.