Changes

Jump to: navigation, search

Tutorial5: Redirection

No change in size, 16:08, 23 January 2020
Redirection (Standard Input, Standard Output, Standard Error)
<span style="font-family:courier;font-weight:bold">ls -l<br>ls -l > detailed-listing.txt<br>ls /bin >> output.txt</span>
<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:stdoutstderr-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.<br>In the examples below, error messages from a command are sent to a file or are redirected to a file that acts as a "garbage can".
13,420
edits

Navigation menu