Linux exec file redirection

Source: Internet
Author: User

Linux exec file redirection exec command function exec ls execute ls in shell, after ls is completed, the original shell is not returned. exec <file uses the content in the file as the exec standard input exec> file. The content in the file is written as the standard exec 3 <file reads the file in fd3, the content read in sort <& 3 fd3 is classified as exec 4> file writes the content written into fd4 to file ls> & 4 Ls will not be displayed, the data is directly written to fd4, that is, copy fd5 exec 3 from exec 5 <& 4 created in the above file <&-Disable fd3

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.