V2EX  ›  英汉词典

Standard Output

定义 / Definition

standard output(标准输出,常写作 stdout):在计算机系统中,程序默认用来“输出正常结果”的输出通道,通常显示到终端/控制台;也可以被重定向到文件或通过管道传给另一个程序。(相关的还有 standard error 用于错误信息。)

发音 / Pronunciation (IPA)

/ˈstændərd ˈaʊtpʊt/

例句 / Examples

The program prints the result to standard output.
程序把结果打印到标准输出。

When you redirect standard output to a file, you can save the command’s output for later analysis.
当你把标准输出重定向到文件时,就可以保存命令的输出以便之后分析。

词源 / Etymology

该术语形成于早期类 Unix 与 C 语言运行环境对输入/输出的约定:standard 表示“预先规定的、默认的”,output 表示“输出”。在 Unix 传统中,进程通常有三个默认数据流:standard input、standard output、standard error,其中 standard output 专门用于正常输出内容,便于组合命令与重定向。

相关词 / Related Words

文学与经典著作用例 / Literary & Notable Works

  • The C Programming Language(Kernighan & Ritchie)——讨论标准 I/O(stdio)与输出流的用法(常以 stdout 指代标准输出)。
  • The Unix Programming Environment(Kernighan & Pike)——讲解管道、重定向与标准输出在命令组合中的角色。
  • Advanced Programming in the UNIX Environment(W. Richard Stevens)——系统化介绍进程的标准流与文件描述符(标准输出的概念贯穿其中)。
  • The Linux Programming Interface(Michael Kerrisk)——在进程 I/O、重定向与管道章节中频繁涉及标准输出。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1453 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 139ms · UTC 16:52 · PVG 00:52 · LAX 09:52 · JFK 12:52
♥ Do have faith in what you're doing.