dup2() is a c system call that duplicates a file descriptor.
How do I use dup2 to perform the following command? ls -al | grep alpha | more
c linux dup2I looked it up in the man page but I still don't get it... let's say you have dup2(f1,0). …
c pipe file-descriptor dup2I have been writing a Unix shell in C, and I am attempting to implement input and output redirection. I …
c dup2