Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In this chapter we're going to be talking about how we can modify the input and output that Unix uses and before we use do that we first need to understand the concept of standard input and standard output and you may already be able to guess what these standard input and output are if you think about it. The input is the keyboard. That's its main way of getting input into Unix. It's the things that you type on the keyboard and the way of getting information out, standard output, is typically the text Terminal, the window, the screen that you're seeing inside Terminal. So that's where it outputs its results to. So when we type a command, we type in the command, we hit Return, that's the input.
It does its process and at the end of it, it outputs the results to the screen so that we can see it. What we're going to be doing is changing each of those. I also want to mention the common abbreviations for standard input are just stdin and for output its stdout. So if you see that, that's what it is referring to, is standard in and standard out, and there are actually sort of special files on Unix that correspond to these and that's inside that dev folder. dev is where information about different devices stored. So inside dev there is a stdin and stdout, which are files that are really sort of references to these two things, to the keyboard and to the Terminal.
What we want to do is figure out how we can work with commands so that we can change the input or the output. So let's start by looking in the next movie at how we can direct the output not to the screen, but instead to go into a file.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 97336 Viewers
61 Video lessons · 84586 Viewers
71 Video lessons · 68788 Viewers
56 Video lessons · 101265 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.