~$ tenggouwa
~ posts inspirations lab about

$ grep -l fd posts/*.md

  • 重定向全解:>、>>、2>&1、<、<<<、|、tee

    2026-06-21

    Linux 系列第 8 篇。stdout、stderr、stdin 这三个 file descriptor 是 shell 的"输入输出基础设施",但新手常被一堆符号绕晕——`> file`、`2>&1`、`&>`、`<<<` 到底各自什么含义。这一篇把它们拆开讲清楚,并给出最常碰到的 6 个组合写法。

    linux linux-series shell redirection fd
© 2026 tenggouwa · made with caffeine ☕
RSS [ uptime: ∞ ]