Changes

Jump to: navigation, search

Tutorial5: Redirection

276 bytes added, 17:07, 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:stdinstderr-symbol-1.png|thumb|right|250px|The '''standard inputerror''' ('''stdinsterr''') symbol that describes where a Unixwith one greater than sign overwrites existing file content with command's error message.]]</Linux command receives td><td>[[Image:stdout-symbol-2.png|thumb|right|250px|The '''standard error''' ('''stderr''input') 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