Redirecting input and output

DATA FLOW

Article from Issue 82/2007
Author(s):

Working in the shell has many benefits. Pipelines, redirectors, and chains of commands give users almost infinite options.

Combining shell commands lets you leverage the power of the command line. This not only includes linking individual programs, but also forwarding command output. For example, if the information you need disappears from the screen too fast for you to read, you can simply redirect it to a file or use a pager.

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Hotwire Interactive Shell

    The Hotwire shell removes the complexities of interactive consoles. We’ll show you how to Hotwire your Linux with this handy text and graphical shell for developers and administrators.

  • Command Line: Diffutils

    The Diffutils tool set helps you compare text files, discover and display the differences between files, and even automatically synchronize files.

  • PHP for Sysadmins

    Most admins tend to use the shell, Perl,or Python if they need a system administration script. But there is no need for web programmers to learn another language just to script a routine task. PHP gives admins the power to program command-line tools and even complete web interfaces.

  • Command Line: sed

    Working with a text editor can be difficult if you need to handle frequently recurring tasks or multiple files. sed can save a lot of typing.

  • Bash Tricks

    The Bash shell is powerful and infinitely expressive. This article describes some tricky techniques you can use to enhance and customize your Bash environment.

comments powered by Disqus

Direct Download

Read full article as PDF:

News