13,420
edits
Changes
→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===