stderr 是 standard error(标准错误输出) 的缩写:在许多操作系统与编程环境中,用来输出错误信息、警告、诊断日志等的输出通道(通常与正常输出 stdout 分开)。常见于命令行、脚本与程序运行时的报错信息。
/ˌɛsˌtiːˈdiːˈɑːr/
The program wrote the error message to stderr.
程序把错误信息写到了标准错误输出(stderr)。
If you redirect stdout to a file but leave stderr unchanged, you can save normal output while still seeing errors in the terminal.
如果你把标准输出(stdout)重定向到文件但不改变标准错误(stderr),你就能保存正常输出,同时仍在终端里看到错误信息。
stderr 来自计算机术语 standard error 的缩写形式:std(standard,标准)+ err(error,错误)。在类 Unix 系统中,它与 stdout、stdin 一起构成传统的三大“标准流”,便于把正常输出与错误输出分离、重定向或分别记录。
stderr 属于较新的计算机与工程术语,通常不出现在传统文学作品中;更常见于编程书籍、技术随笔与开源项目文档(如 Unix/Linux 手册页、编程语言教程、软件工程类非虚构作品)中。