In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you the "sample analysis of shell io redirection", which is easy to understand and well-organized. I hope it can help you solve your doubts. Let the editor lead you to study and study the "sample analysis of shell io redirection".
By default, there are always three "files" open, stdin (keyboard), stdout (screen), and stderr (error message output to the screen). These three files and other open files can be redirected. The simple explanation for redirection is to capture the output of a block of code in a file, command, program, script, or script, and then send these outputs as input to another file, command, program, or script.
Each open file is assigned a file descriptor. The file descriptors for stdin, stdout, and stderr are 0, 1, and 2, respectively. In addition to these three files, file descriptors 3 through 9 are retained for other files that need to be opened. In some cases, it is useful to assign these additional file descriptors to stdin, stdout, or stderr as temporary script links. They need to be restored to normal after a complex redirection and refresh.
The above is all the content of the article "sample Analysis of shell io Redirection". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.