0% found this document useful (0 votes)
25 views

Input Output Re Direction Symbols

Linux by default uses terminals for user input and output of commands, but allows redirection of input from files or devices and output to files or devices using redirection commands. The >, >>, !, and | symbols allow redirecting output to files without overwriting, appending to files, passing output as input to another command through piping, and sending output to both a file and screen using tee. This eliminates needing intermediate storage and allows further processing of command outputs.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Input Output Re Direction Symbols

Linux by default uses terminals for user input and output of commands, but allows redirection of input from files or devices and output to files or devices using redirection commands. The >, >>, !, and | symbols allow redirecting output to files without overwriting, appending to files, passing output as input to another command through piping, and sending output to both a file and screen using tee. This eliminates needing intermediate storage and allows further processing of command outputs.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

I/O Redirection and Piping Commands

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

You might also like