Linux Learning notes-pipeline and IO redirection

Source: Internet
Author: User

Pipeline and IO redirection

Arithmetic, controller: CPU

Memory: RAM

Input/output device I/O


Programs: Directives and data


Controller: Instruction

The arithmetic device:

Memory:


Address bus: Memory addressing

Data bus: Transferring data

Control Bus: Control instructions



/ o:


Programs: Directives and data


Input device:



Output device:



System settings:

Default output device: Standard output, stdout,1

Default input device: standard input, stdin,0

standard error Output: stderr,2

Standard input: Keyboard

Standard Error Output: Display


I/O redirection:

Linux:

: Overwrite output

>>: Append output

SET-C: Disable overwrite redirection for files that already exist


Set +c: Turn off the above features


2>: Redirect Error output

2>>: Append method (redirect error output)


&>: Redirect standard output or error output to the same file

<: input

<<:here Document

Pipeline: The output of the previous command, as input to the latter command


Command 1 | command 2 | command 3 ...


Tee: Reads the standard input data and outputs its contents to a file.


This article is from the "11913800" blog, please be sure to keep this source http://11923800.blog.51cto.com/11913800/1840259

Linux Learning notes-pipeline and IO redirection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.