V2EX  ›  英汉词典

Basename

释义 Definition

basename:指“基本名称/基名”,常用于计算机领域,表示去掉路径后文件名本身(有时也可指去掉扩展名后的主体部分,具体取决于语境或工具,如 Unix 的 basename 命令)。

发音 Pronunciation

/ˈbeɪsneɪm/

例句 Examples

The basename of /home/user/report.pdf is report.pdf.
/home/user/report.pdf 的 basename 是 report.pdf

When logging errors, we store the basename separately so the output stays readable even if the full path is long.
记录错误时,我们会把 basename 单独保存,这样即使完整路径很长,输出也更易读。

词源 Etymology

base(基础的、主要的)+ name(名称)构成。该词在计算机与文件系统语境中被广泛使用,用来强调“路径中的核心名称部分”,与表示目录部分的概念相对应。

相关词 Related Words

文学作品 Notable Works

该词主要属于技术/计算机术语,通常出现在操作系统文档、编程语言文档与技术书籍中,而非传统文学作品。常见出处包括:

  • *The Open Group Base Specifications (POSIX)*(POSIX 规范中涉及 basename 命令与路径处理的描述)
  • Advanced Programming in the UNIX Environment(Unix 环境编程经典教材中常讨论路径、文件名处理)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   831 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 23:23 · PVG 07:23 · LAX 15:23 · JFK 18:23
♥ Do have faith in what you're doing.