The below command makes a copy of the input file descriptor and use the duplicate file descriptor for writing data from the echo command on to the console.
sh-4.2$ exec 6<&0
sh-4 The below command makes a copy of the input file descriptor and use the duplicate file descriptor for writing data from the echo command on to the terminal.2$ echo "hello" >&6
hello
sh-4.2$ exec 6<&0 sh-4.2$ echo "hello" >&6 hello Does that mean we can write to the console using the input file descriptor? Does that mean we can write to the terminal using the input file descriptor?