V2EX  ›  英汉词典

Stdout

释义 Definition

stdoutstandard output(标准输出) 的缩写:在命令行/程序运行时,用来输出正常信息的默认数据流/通道(通常显示在终端屏幕上)。在类 Unix 系统中常与 stdinstderr 并列;也可以被重定向到文件或管道中。

发音 Pronunciation (IPA)

/ˌstændɚd ˈaʊtpʊt/(standard output 的读音;“stdout” 常按字母念)

例句 Examples

The program writes results to stdout.
程序把结果写到标准输出。

If you redirect stdout to a file, you can save the logs while keeping error messages on stderr.
如果你把标准输出重定向到文件,就能保存日志,同时把错误信息保留在标准错误里。

词源 Etymology

stdout 来自 standard output 的合成缩写:**std-**(standard,标准)+ out(output,输出)。这一术语在早期 Unix 与 C 语言等计算环境中被广泛固定下来,用于区分“正常输出”和“错误输出(stderr)”。

相关词 Related Words

文学作品 Literary Works

  • 《The C Programming Language》(Kernighan & Ritchie)——在讲解输入/输出、printf、以及标准流概念时涉及标准输出(stdout)。
  • 《Advanced Programming in the UNIX Environment》(W. Richard Stevens)——在 Unix I/O 与进程/文件描述符章节中讨论标准输入/输出/错误等概念(stdout)。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2376 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 08:06 · PVG 16:06 · LAX 00:06 · JFK 03:06
♥ Do have faith in what you're doing.