Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

输入输出、重定向与管道

命令的结果去了哪里?如何把多个简单命令组合成一条数据处理流水线?

学习目标

标准输入输出

名称编号用途
stdin0标准输入
stdout1标准输出
stderr2标准错误

输入重定向

输出重定向

错误重定向

管道