Overview - stdout redirection (>, >>)
What is it?
Stdout redirection is a way to send the output of a command to a file instead of showing it on the screen. The symbol > replaces the file content with new output, while >> adds the output to the end of the file without deleting existing content. This helps save or log command results easily.
Why it matters
Without stdout redirection, you would only see command results on the screen and lose them after closing the terminal. This makes it hard to keep records or use outputs later. Redirection lets you save outputs for review, debugging, or further processing, making command-line work more powerful and organized.
Where it fits
Before learning stdout redirection, you should know basic command-line usage and how commands produce output. After mastering redirection, you can learn about input redirection, pipes, and advanced shell scripting techniques that combine multiple commands.