Changes

Jump to: navigation, search

Tutorial5: Redirection

3 bytes added, 12:24, 25 January 2020
Redirection (Standard Input, Standard Output, Standard Error)
<table align="right"><tr><td>[[Image:stdout-symbol-1.png|thumb|right|250px|The '''standard input''' ('''stdin''') symbol with one greater than sign overwrites existing file content with command output]]</td><td>[[Image:stdout-symbol-2.png|thumb|right|250px|The '''standard input''' ('''stdin''') symbol with two greater than signs add command's output to bottom of existing file's contents.]]</td></tr></table>
'''Standard output''' ('''stdout''') describes where a command sends it's output.<br>In the examples below, output from a command is sent to the '''monitor''', unless it is sent to a '''regular text file'''.
<table align="right"><tr><td>[[Image:stderr-symbol-1.png|thumb|right|250px|The '''standard error''' ('''sterr''') symbol with one greater than sign overwrites existing file content with command's error message.]]</td><td>[[Image:stderr-symbol-2.png|thumb|right|250px|The '''standard error''' ('''stderr''') symbol with two greater than signs add command's error message to bottom of existing file's contents.]]</td></tr></table>
'''Standard Error''' ('''stderr''') describes where a command sends it's error messages. In the examples below we issue the pwd in capitals on purpose to generate an error message, which can be redirected to a '''text file'''.
13,420
edits

Navigation menu