V2EX  ›  英汉词典

CMP

定义 Definition

cmp(常写作 CMP)多指计算机领域的缩写:

  1. 比较(compare):在编程、命令行或汇编中表示“比较”,用于对两个值/两个文件进行对照检查(如 Unix 命令 cmp 用来逐字节比较两个文件)。
    (也可能在不同语境中表示其他缩写,但以上是最常见的用法之一。)

发音 Pronunciation

/ˌsiː em ˈpiː/

例句 Examples

I used cmp to check whether the two files are identical.
我用 cmp 检查这两个文件是否完全相同。

In the build pipeline, a cmp step compares the generated output against the baseline, and the job fails if any byte differs.
在构建流水线中,cmp 步骤会把生成的输出与基线文件进行比较;只要有任意一个字节不同,任务就会失败。

词源 Etymology

cmp 通常是 compare(比较)的缩写或首字母缩略写法。在 Unix/POSIX 体系里,cmp 作为命令名简洁明了,用于“比较两个文件并报告差异”,因此在技术文档和脚本中非常常见。

相关词 Related Words

文学作品 Literary Works

  • The UNIX Programming Environment(Brian W. Kernighan & Rob Pike)
  • UNIX and Linux System Administration Handbook(Evi Nemeth 等)
  • Advanced Programming in the UNIX Environment(W. Richard Stevens, Stephen A. Rago)
  • POSIX Programmer’s Guide(Donald A. Lewine)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   672 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 21:03 · PVG 05:03 · LAX 13:03 · JFK 16:03
♥ Do have faith in what you're doing.