Changes

Jump to: navigation, search

Tutorial5: Redirection

327 bytes added, 12:19, 25 January 2020
Redirection (Standard Input, Standard Output, Standard Error)
<span style="font-family:courier;font-weight:bold">PWD<br>PWD 2> error-message.txt<br>PWD 2 >> error-messages.txt<br>PWD 2> /dev/null</span>
 
The '''/dev/null''' file (sometimes called the '''bit bucket''' or '''black hole''') is a special system file<br>that discards all data written into it. This is useful to discard unwanted command output.
 
''Example:''
 
<span style="font-family:courier;font-weight:bold;">find / -name "tempfile" 2> /dev/null</span>
<br><br>
===Additional File Manipulation Commands===
13,420
edits

Navigation menu