Now we can analyze the source code of Linux kernel.Ii. inheritance between fork () and stderr and stdio. stdout in execve ()In fact, it seems that the word "inherit" is not accurate. To be more accurate, replication may be more appropriate.First,
Article Title: tip: "Disable" Echo output from Linux terminal. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
> and when it comes to I/O redirection, let's get to know file descriptor (FD) first. The operation of the program, in most cases, is the processing of data (data), which is read from where? And where to send it? This is the function of file
Article Title: Linux redirection details. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I/O redirection
Inux redirection refers to modifying some of the original default items and changing the default execution mode of the original system commands, for example, if I don't want to see the output on the monitor, but want to output the inux redirection
Disable the echo output from the Linux terminal-general Linux technology-Linux programming and kernel information. For more information, see the following. The Termios structure is a standard interface defined in the POSIX specification. You can
1, the basic concept (this is the premise of understanding the knowledge behind, it must be understood)A, I/O redirection is usually related to FD, the Shell's FD is usually 10, namely 0~9;b, there are 3 commonly used FD, for0 (stdin, standard input)
Original aircraftOriginal link: https://www.cnblogs.com/DOMLX/p/9612820.htmlUnder Linux:I. Service-side codeThe following closed file descriptor with multiple close, there may be some small partners have doubts .... I'll just say that when you
This article introduces the knowledge of file descriptors and redirection in linux. file descriptors are integers associated with file input and output. they are used to track opened files. For more information, see
In linux, the file descriptor is
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.