问题 Trying to understand why this section of code using the cat command isn't working with execvp in C. char *in[5] ={"cat", "file1.txt", ">>", "file2.txt", 0}; execvp(in[0], in); When I run it displays the contents of file1.txt but then says: cat: >> No such file or directory. Then displays the contents of file2.txt Why wouldn't it recognize the >> operator in this instance? 回答1: You can read the "man tee" command which it read from standard input and write to standard output and files. You