Linux--输出重定向函数:dup2

定义:

int dup2(int oldfd, int newfd);

作用:将newfd的内容作用到oldfd上

Linux--输出重定向函数:dup2_第1张图片

 

你可能感兴趣的:(Linux,linux)