Learn how to redirect command output to both a file and stdout in bash using the tee command. Complete guide with examples for stdout, stderr, and advanced redirection techniques.