How to redirect stderr in Unix
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:I forgot how to redirect stderr in Unix.
Answer:> will redirect stdout. Use the >& operator to redirect stderr:
rm backup.zip >&junk
It works in the Windows shell too.