Learn how to send output from a command to a text file.
- [Instructor] In this chapter, … we will learn to direct input to Unix commands … and to handle the output that comes out of them. … Unix has standard inputs and outputs. … Standard input, sometimes abbreviated as stdin, … is going to be the keyboard by default. … And that makes sense. … When you're interacting with Unix, … typically the input is coming from the user, … from the keyboard. … We also have a standard output, or stdout for short, … and by default, that's typically the text terminal, … or the screen. … Again, that makes sense. … We enter a command, the command gives us output … back to the screen. … But those aren't our only options. … Let's begin by learning how to send output to a file … instead of to the text terminal. … We do that using the greater than operator. … So you have a Unix command, … it can be any Unix command that you want, … but after it, you're going to have that greater than operator … that points to a file. … And it even looks like a pointer, … it looks like it's sending data from the command …
Skill Level Intermediate
1. Introduction to Unix
2. Files and Directories
3. Ownership and Permissions
4. Commands and Processes
5. Directing Input and Output
6. Configure Your Working Environment
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.