Join Scott Simpson for an in-depth discussion in this video Stdin, stdout, stderr, and output redirection, part of Learning Linux Command Line.
- [Voiceover] Working at the command line, we have mostly…been using output that comes back to the screen,…showing us what's been done by a program.…But before we move on, it's important to understand…how to get that information into a file we can use later…or send to someone else.…In the Bash shell, and other shells as well, there are three…general areas we work with text through, which are not…immediately evident at a glance.…There's the Standard Input, or stdin, which is…keyboard input, the Standard Output, or stdout, which is…the result of running commands that comes back to…our screen when commands execute correctly.…
The third is Standard Error, which is the result that comes…back from commands when they don't execute correctly…and return an error message to us.…Standard input is given the descriptor of zero.…Standard output gets one.…And standard error is two.…We'll be using these descriptors to redirect the information…to other places.…Let's take a look at redirecting some output.…I'll switch to my exercise files, and I'll write ls…
This course will establish the foundation for more advanced Linux topics. Find other Linux training courses here.
- What is the Linux command line?
- Writing Linux commands at the prompt
- Finding help for Linux commands
- Editing files and folders
- Configuring user roles and file permissions
- Using pipes to connect commands
- Peeking at files
- Searching and editing text
- Finding disk and system information
- Installing and updating software
Skill Level Beginner
1. Command-Line Basics
2. Files, Folders, and Permissions
3. Common Command-Line Tasks and Tools
4. A Peek at Some More Advanced Topics
- 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.