Difference between revisions of "/dev/stderr"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
* <code>[[sudo]] -S</code> or <code>[[sudo]] --stdin</code>
 
* <code>[[sudo]] -S</code> or <code>[[sudo]] --stdin</code>
  
2>[[/dev/null]]
+
<code>2>[[/dev/null]]</code>
  
  

Revision as of 10:53, 15 September 2022

wikipedia:stderr

  • 2>&1
  • &>

2>/dev/null


your-command-with-stdout-and-stderr 2>&1 | tee -a your file

Related

See also

Advertising: