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

Cameron Nokes
InstructorCameron Nokes

Share this video with your friends

Send Tweet

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.