O'Reilly logo

Mac OS X 10.4 Tiger: Visual QuickStart Guide by Maria Langer

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

Output Redirection

In all of the Unix commands up to this point that produced output—such as man and ls—the command output appears in the Terminal window. This is called the standard output device of Unix.

But the shell can also redirect the output of a command to a file instead of to the screen. This output redirection enables you to create files by writing command output to a file.

Output redirection uses the greater-than character (>) to tell the shell to place the output of a command into a file rather than listing it to the screen. If the output file already exists, it is overwritten with the new information.

Similarly, a pair of greater-than signs (>>) tells the shell to append the output of a command to the end of a file rather than erasing ...

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