Redirection in linux, directing the standard output and error output together to the file
Source: Internet
Author: User
Redirection in linux: redirects the standard output and error output together to the file in linux, and directs the standard output and error output together to the file, for example, to execute the script in test, redirects the execution result of the script (including standard output and error output) to outputshell generation... redirection in linux: redirects the standard output and error output together to the file in linux, and directs the standard output and error output together to the file, for example, to execute the script in test, redirect the execution result of the script (including standard output and error output) to the output shell code as follows: sh test 1> output 2> & 1 Code 1 indicates standard output, 2 indicates the error output. 2> & 1 indicates redirecting error output to standard output
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