Bash/Redirecting: Difference between revisions
From charlesreid1
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
ls -yz 2>&1 >> command.log | ls -yz 2>&1 >> command.log | ||
</pre> | </pre> | ||
==flags== | |||
[[Category:Bash]] | |||
Latest revision as of 03:33, 24 March 2018
http://www.tldp.org/LDP/abs/html/io-redirection.html
Do this:
ls -yz >> command.log 2>&1
not this:
ls -yz 2>&1 >> command.log