Standard I/O

Now that you understand what I/O is, and how commands in Unix work with redirection, it's time to cover what standard input and output is, as well as standard error. In this section of the lesson, we will cover how Unix accepts input and output and errors by default.

When each Unix program is created, it will have a way to accept input. Unix itself is not only based on I/O, but so is every program that runs within it. Unix, when operated through the shell prompt, allows you to control I/O completely, which is why such characters can be used in shell scripts, which will be covered in Lesson 14, “Shell Scripting Fundamentals.” In the last lesson we learned how to use cron to automate, and it could automate a script. Think of the shell ...

Get SAMS Teach Yourself Unix in 10 Minutes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.