Lesson 13: Saving Output with Redirection
A command's output doesn't have to vanish on screen. With the `>` sign you can redirect it into a file and save it. With `>>` you append to an existing file without erasing. That's how reports and logs are built.
> is like aiming a hose: instead of water spilling on the floor (the screen), it flows into a bucket (a file).
- Redirect (>)
- Sends a command's output into a file instead of the screen
- Overwrite
- > creates a new file or erases the existing content
- Append (>>)
- >> adds to the end of the file without erasing what's there