From charlesreid1

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


flags