`>` vs `>>` vs `2>&1`?

IntermediateConceptLinux and shell
Answer

> overwrites, >> appends, and 2>&1 sends stderr to wherever stdout currently points. Order matters: cmd > out.log 2>&1 captures both streams, while cmd 2>&1 > out.log does not.

All Real-World Interview questions Roadmap: Interview readiness

More on Linux and shell