StackOverflow 文档 Bash 教程 重定向 将多个命令重定向到同一文件 将多个命令重定向到同一文件 Created: November-22, 2018 { echo "contents of home directory" ls ~ } > output.txt 将错误消息打印到 stderr使用命名管道