---
title: "Input and output redirection"
author: "RobertLeeJesus"
date: "2008-08-18T11:15:35Z"
tags: []
slug: "input-and-output-redirection"
draft: false
lastmod: "2008-08-18T11:15:35Z"
id: 229125
url: "https://hidefromall.iteye.com/blog/229125"
---

0、1和2分别表示标准输入、标准输出和标准错误信息输出

 

0: 标准输入

1: 标准输出

2: 标准错误

 

&gt;: Redirect standard output

1&gt;: The same as last one, redirect standard output

2&gt;: Redirect standard error

&&gt;: Redirect both standard error and standard output

 

 

&gt;, overwrite

&gt;&gt;, append

&lt; input