stdout 是 standard output(标准输出) 的缩写:在命令行/程序运行时,用来输出正常信息的默认数据流/通道(通常显示在终端屏幕上)。在类 Unix 系统中常与 stdin、stderr 并列;也可以被重定向到文件或管道中。
/ˌstændɚd ˈaʊtpʊt/(standard output 的读音;“stdout” 常按字母念)
The program writes results to stdout.
程序把结果写到标准输出。
If you redirect stdout to a file, you can save the logs while keeping error messages on stderr.
如果你把标准输出重定向到文件,就能保存日志,同时把错误信息保留在标准错误里。
stdout 来自 standard output 的合成缩写:**std-**(standard,标准)+ out(output,输出)。这一术语在早期 Unix 与 C 语言等计算环境中被广泛固定下来,用于区分“正常输出”和“错误输出(stderr)”。
printf、以及标准流概念时涉及标准输出(stdout)。