Data stream redirection in linux

Source: Internet
Author: User
Linux data stream redirection & gt;: overwrite all the data to the specified file or device. 1 & gt ;: output "correct data" to the specified file or device in a overwriting method 1 & gt ;: output "correct data" to the specified file or device in an accumulative way. 2 & gt ;... linux data stream redirection>: overwrite all the data to the specified file or device. 1>: output "correct data" to the specified file or device in a overwriting method. 1 >>: output "correct data" to the specified file or device in an accumulative way. 2>: output "wrong data" to the specified file or device by overwriting method 2>: output "wrong data" to the specified file or device in an accumulative way <: replace the Data originally required by the keyboard with the file content <: it indicates the ending input character. for example, "I want to use cat to directly output the input information to the catfile, and when the keyboard inputs eof, this input ends 』, then I can do this: [plain] [r Oot @ www ~] # Cat> catfile <"eof"> This is a test.> OK now stop> eof <= enter this keyword. it will end immediately without entering [ctrl] + d [root @ www ~]. # Cat catfile This is a test. OK now stop where eof can be replaced by any other string.
Related Article

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.