How to redirect stderr in Unix
2 comments. Current rating: (1 votes). Leave comments and/ or 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.