Linux I/O redirection and linuxo redirection

Source: Internet
Author: User

Linux I/O redirection and linuxo redirection
I/O redirection:


Linux:
>: Overwrite the output.
>>: Append output
Set-C: Disable overwrite redirection for existing files;
If you want to force override, use> |
Set + C: Disable the above functions

2>: redirect error output
2>: Redirection error output in append Mode

&>: Redirects standard output or error output to the same file.


<: Input redirection

MPs queue:
The output of command 1 is used as the input of command 2.
Ls-l | grep "nginx"
Command 1 | command 2 | command 3 |... | command n

Tee: reads data from standard input and outputs it to standard output and files.

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.