Input Output Re Direction Symbols
Input Output Re Direction Symbols
LINUX provides as a default devices, a terminals of the user for input and output. Ii takes the from the keyboards, carries out the commands, and dumps the output or error messages on the screen of the terminal, unless otherwise specified. Linux has a provision in its command structure, for the user to redirect the input to be taken from files or a device; and to direct the output to any file or device. These are redirection commands. The characters used here are>, >>,!, tee. The output of a commands can be further processed for the desired end result, using the symbol!(pipe) eliminating the need for an intermediate or temporary storage. Command > < >> | tee Function Output to be stored in the directed file and not on the user Terminal Input to be taken from a file The output to be appended to the end of the file content and not Overwrite To pass the effect of one command for further processing by a second command To direct the output to file as well as to the screen