Linux Journal April 2015 by Linux Journal

Linux Journal April 2015 by Linux Journal

Author:Linux Journal
Language: eng
Format: mobi, epub
Tags: .NET, Word Searches, LUCI4HPC, stdout, Intercom, stdin, Dynamic, Cluster Management, ChangeTip, Django, XFLR5, Libreboot, Virtualization, stderr, Linux, Coinbase, Android, Computoser, X60, Bitcoin, Jailhouse
Publisher: Belltown Media
Published: 2015-03-26T07:00:00+00:00


Send comments or feedback via http://www.linuxjournal.com/contact or to [email protected].

COLUMNS

The Open-Source Classroom

SHAWN POWERS

Pipes and STDs

Standard input, output and error are confusing—until now.

Punny title aside, the concepts of STDIN (standard input), STDOUT (standard output) and STDERR (standard error) can be very confusing, especially to folks new to Linux. Once you understand how data gets into and out of applications, however, Linux allows you to string commands together in awesome and powerful ways. In this article, I want to clear up how things work, so you can make the command line work much more efficiently.

Processes and Their Data

At a basic level, when a process is run on the command line, it has three “data ports” where it can send and/or receive data. Figure 1 shows my depiction of an application’s I/O design.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.