goldenradium2001
Technical User
I'm trying to find out what file descriptors are in laymen's terms. I know that you can use exec x>file to assign a file descriptor to a file so that you don't even need to open that file using the filename (where x is the file descriptor number that you want to assign to the file).
However, to view the file, I'm told to use exec x<file. What is the point of that?? I thought I could just use the file descriptor number to open the file? I can just use vi file if this the way to view a file that I've assigned a file descriptor to.
Any help for a better definition of file descriptors and their usage would be GREATLY appreciated.
However, to view the file, I'm told to use exec x<file. What is the point of that?? I thought I could just use the file descriptor number to open the file? I can just use vi file if this the way to view a file that I've assigned a file descriptor to.
Any help for a better definition of file descriptors and their usage would be GREATLY appreciated.