O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required