O'Reilly logo

Practical Linux by Bill Ball, John Ray, Michael Turner, M. Drew Streib

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

Creating Shell Commands

The shell recognizes a number of special characters on the command line. This section shows how to use these characters to do the following:

  • Send a program's output to a file.

  • Have a program read text from a file.

  • Append a program's output to a file.

  • Run a program in the background.

Using the >, >>, and < Redirection Operators

Shell redirection operators are used to direct a program's input and output. The shell can be used to feed a program input from another application, from the command line, or even from another file. These operators are used to copy, create, or overwrite files; to build reports; or to create databases.

The cat (short for concatenate) command is used to print one or more files to your display. ...

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