Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Understand how to Redirect stdin, stdout, and stderr in Bash


    Maybe you’ve seen something like 2>&1 at the end of a bash command before. What does that even mean? In this lesson, we’ll learn what stdin, stdout, and stderr are. From there, we’ll see that stdin, stdout, and stderr can be referenced by their file descriptors (0, 1, and 2) and are all just streams that can be directed however we want.