# 命令行界面

命令行界面（CLI）是一种基于文本的控制软件的手段，通常通过由 shell 解释的命令来执行程序<sup>[1](https://dl.acm.org/doi/pdf/10.1145/357980.358014)</sup><sup> • </sup><sup>[2](https://techdows.com/gui-cli-and-tui-what-are-they-and-whats-the-difference.html)</sup>。[丹尼斯·里奇](https://www.edgepedia.org/zh/dennis-ritchie)（Dennis Ritchie）在1978年的回顾文章中称 shell 是“系统与其用户之间最重要的沟通渠道”，并指出它不属于操作系统的一部分，也不享有任何特殊权限<sup>[3](https://ia801401.us.archive.org/10/items/bstj57-6-1947/bstj57-6-1947_text.pdf)</sup>。Unix 诞生五十多年后，同样的模型仍然支撑着开发者工具、服务器管理和云自动化。

| 关键事实 | 详情 |
|---|---|
| 定义 | 一种基于文本的读取-求值-输出循环：shell 接收键盘输入，对其求值，并执行命令<sup>[4](https://learn.microsoft.com/en-us/powershell/utility-modules/aishell/concepts/what-is-a-command-shell?view=ps-modules)</sup> |
| 分层 | 终端模拟器负责渲染文本，shell 负责解释命令，提示符是视觉层；shell 是一个无特权的用户空间进程<sup>[5](https://hackmd.io/@noturno/SkWkXrcwzx)</sup><sup> • </sup><sup>[6](https://operatingsystemsauthority.com/operating-system-user-interfaces)</sup> |
| 处理模型 | POSIX 将词法识别、解析、单词展开、重定向和执行定义为 shell 的不同步骤<sup>[7](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3%5Fchap02.html)</sup> |
| 数据模型分歧 | POSIX shell 按惯例以文本流传递数据；PowerShell 传递带类型属性的 .NET 对象；Nushell 传递带类型的表格<sup>[5](https://hackmd.io/@noturno/SkWkXrcwzx)</sup> |
| 开发者使用率 | 在2026年 Stack Overflow 调查中，51.3%的受访者（7,231人）使用 Bash/Shell<sup>[8](https://survey.stackoverflow.co/2026/technology/data)</sup> |
| 学习曲线 | 一项研究发现只有专家能可靠地组合管道和重定向；另一项研究指出，流畅地组合新的复杂 Unix 命令需要五年以上的经验<sup>[9](https://www.tandfonline.com/doi/abs/10.1080/07370024.1990.9667156)</sup><sup> • </sup><sup>[10](https://journals.sagepub.com/doi/10.1177/154193129003400407)</sup> |
| 主要痛点 | 70.41%的受访开发者将难以记住的复杂命令和语法列为主要 CLI 困难<sup>[11](https://www.warp.dev/state-of-the-cli-2023)</sup> |

## 什么是命令行

有几个术语经常被混为一谈。微软将命令 shell 定义为一种基于文本的界面，也称为[读取-求值-输出循环](https://www.edgepedia.org/zh/read-eval-print-loop)（REPL），而将终端定义为“一种提供基于文本的界面以承载命令 shell 的应用程序”<sup>[4](https://learn.microsoft.com/en-us/powershell/utility-modules/aishell/concepts/what-is-a-command-shell?view=ps-modules)</sup>。一篇专业文章区分了三个层次：终端模拟器，即渲染文本的程序（iTerm2、Alacritty、Windows Terminal、kitty、WezTerm）；shell，即命令解释器；以及提示符，即由 starship 或 oh-my-zsh 等工具生成的视觉层<sup>[5](https://hackmd.io/@noturno/SkWkXrcwzx)</sup>。曾经驱动真实电传打字机的电传打字机（TTY）子系统在现代 Unix 中依然存在，仍可通过 stty(1) 工具进行配置<sup>[12](https://www.linusakesson.net/programming/tty/)</sup>。

shell 本身就是一个普通程序。Bash、Zsh 和 [PowerShell](https://www.edgepedia.org/zh/powershell) 等 shell 是用户空间进程，通过系统调用与内核通信，而非特权内核代码<sup>[6](https://operatingsystemsauthority.com/operating-system-user-interfaces)</sup>。里奇在1978年也表达了同样的观点：shell 不属于操作系统的一部分<sup>[3](https://ia801401.us.archive.org/10/items/bstj57-6-1947/bstj57-6-1947_text.pdf)</sup>。

## 历史

命令行界面从连接系统控制台的批处理监控程序演变而来，在那些系统中，请求以专门词汇表中的文本命令形式表达。与批处理系统相比，延迟从数天或数小时降至数秒<sup>[13](http://www.catb.org/%7Eesr/writings/taouu/html/ch02s02.html)</sup>。分时系统可追溯至1950年代；最有影响力的早期实验是1965年之后的 MULTICS 操作系统，而 Unix 命令行界面始于1969年<sup>[13](http://www.catb.org/%7Eesr/writings/taouu/html/ch02s02.html)</sup>。道格·麦克罗伊（Doug McIlroy）的注释记录指出，“shell”这一名称和总体轮廓起源于 MULTICS<sup>[14](https://www.cs.dartmouth.edu/~doug/reader.pdf)</sup>。

里奇和汤普森1974年发表在 CACM 上的论文首次向广大读者描述了这一机制：[Shell](https://www.edgepedia.org/zh/shell-computing)“读取用户键入的行，并将其解释为执行其他程序的请求”，命令行是命令名后跟以空格分隔的参数，shell“通过键入提示符字符”来表示就绪<sup>[1](https://dl.acm.org/doi/pdf/10.1145/357980.358014)</sup>。如果找不到某个命令，shell 会在前面加上 /bin/ 并重试<sup>[1](https://dl.acm.org/doi/pdf/10.1145/357980.358014)</sup>。重定向同样古老：以“<”开头的参数指定一个由 shell 打开并附加到标准输入的文件，而“>”则重定向标准输出<sup>[3](https://ia801401.us.archive.org/10/items/bstj57-6-1947/bstj57-6-1947_text.pdf)</sup>。使用“|”在两个函数之间进行管道连接，成为 Unix 最独特的特征之一；口述历史记载，汤普森在伦敦的一次演示前夕决定替换麦克罗伊的管道语法<sup>[15](https://mirror.math.princeton.edu/pub/unixarchive/Documentation/OralHistory/finalhis.htm)</sup>。

标准化在二十年后到来。/usr/group 标准始于1983年，随后1985年 IEEE 支持的 POSIX 标准描述了 BSD 与 System V Release 3 调用的交集<sup>[16](http://www.catb.org/%7Eesr/writings/taoup/html/ch02s01.html)</sup>。在 Windows 方面，Command shell 是第一个内置于 Windows 的 shell，通过批处理（.bat）文件自动化用户账户管理和夜间备份等日常任务<sup>[17](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands)</sup>。

## 命令行如何工作

POSIX 规定了处理顺序。shell 将输入分解为词法单元、单词和操作符；将其解析为简单命令和复合命令；对每个单词执行展开；然后在执行前执行重定向，并从参数列表中移除重定向操作符及其操作数<sup>[7](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3%5Fchap02.html)</sup>。2024年版标准增加了在单词展开之前对美元符号加单引号（$'…'）内转义序列的显式处理<sup>[18](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/utilities/V3_chap02.html)</sup>。

**管道与流。** 在管道中，POSIX 要求 shell 将每个命令的标准输出链接到下一个命令的标准输入——如同创建了一个管道——对除最后一个命令之外的每个命令都如此。<sup>[7](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3%5Fchap02.html)</sup> 在实践中，shell 解析你键入的内容，展开变量和通配符，连接管道，并决定运行哪个可执行文件；退出码0表示成功，非零表示失败，这正是驱动脚本和自动化的机制，重定向操作符包括 >、2> 和 &><sup>[19](https://thelinuxcode.com/linux-cli-and-gui-how-i-choose-the-right-interface-for-real-work-and-how-you-should-too/)</sup>。这些约定被大量使用：在朱莉娅·埃文斯的社区终端调查中，93%的受访者报告使用了 > 重定向操作符<sup>[20](https://jvns.ca/terminal-survey/results-mastodon)</sup>。

**一种语言，两种用途。** 根据 dash 手册，shell 是一个从文件或终端接收输入行、解释它们并通常运行其他命令的程序；用户可以交互式地输入命令，也可以将其保存在文件中并作为脚本运行该文件<sup>[21](https://man7.org/linux/man-pages/man1/dash.1.html)</sup>。交互式使用与脚本化使用之间的这种同一性，正是同样的 shell 技能可以迁移到自动化领域的原因。

## Shell 及其家族

谱系有据可查：汤普森 shell 始于1971年，bash 始于1989年，zsh 始于1990年，fish 始于2005年，PowerShell 始于2006年，Nushell 始于2019年<sup>[5](https://hackmd.io/@noturno/SkWkXrcwzx)</sup>。自 Catalina 起，Zsh 一直是 macOS 上新用户账户的默认 shell，而 Bash 仍然是大多数 Linux 发行版的默认 shell<sup>[22](https://commandlinux.com/statistics/shell-usage-distribution-bash-vs-zsh-vs-fish-actual-usage-data/)</sup>。

最深刻的设计分歧在于数据模型。POSIX shell 在命令之间传递文本。PowerShell 自2006年起改为在命令之间传递带类型属性的 .NET 对象；Nushell 用 Rust 编写、跨平台，将数据视为带类型的表格，将错误视为值<sup>[5](https://hackmd.io/@noturno/SkWkXrcwzx)</sup>。Nushell 自己的文档称其灵感来自 PowerShell 和函数式编程语言，将每个输入视为有结构的东西，而非原始文本流<sup>[23](https://github.com/younghai/nushell)</sup>。

兼容性源于数据模型。Bash 是 CI/CD 流水线、Docker 容器和服务器自动化脚本的事实标准；Zsh 可以不加修改地运行大多数 Bash 脚本，而 Fish 脚本需要重写才能在 Bash 或 Zsh 中运行<sup>[22](https://commandlinux.com/statistics/shell-usage-distribution-bash-vs-zsh-vs-fish-actual-usage-data/)</sup>。

在 Windows 上，自带两种命令行 shell：Command shell 和 PowerShell。Command shell 可以运行 Windows 命令，但不能运行 PowerShell cmdlet，微软建议使用 PowerShell 而非 Windows 命令或 Windows Script Host，以实现稳健、最新的自动化<sup>[17](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands)</sup>。

## 数据一览

使用仍然广泛。在2026年 Stack Overflow 开发者调查中，Bash/Shell（所有 shell）被51.3%的受访者（7,231人）使用，位列最常用技术之一<sup>[8](https://survey.stackoverflow.co/2026/technology/data)</sup>。该调查的语言时间序列页面则显示2026年 Bash/Shell 为58.0%，高于2024年的51.0%；两个页面不一致，这一差异尚未解决<sup>[24](https://survey.stackoverflow.co/2026/technology/data/languages-timeseries)</sup>。在2025年的调查中，49%的受访者报告在过去一年中大量使用 Bash/Shell，总体排名第五，领先于 [TypeScript](https://www.edgepedia.org/zh/typescript) 的44%<sup>[22](https://commandlinux.com/statistics/shell-usage-distribution-bash-vs-zsh-vs-fish-actual-usage-data/)</sup>。

Warp 在2023年6月至7月对1,500多名开发者的调查发现，69%的人始终保持终端打开，但只有19%的人认为自己是 CLI 专家<sup>[11](https://www.warp.dev/state-of-the-cli-2023)</sup>。在这些受访者中，Zsh 是最常用的 shell，占69.04%，其次是 Bash 的16.70%和 Fish 的5.86%<sup>[11](https://www.warp.dev/state-of-the-cli-2023)</sup>。

性能和占用空间相差数个数量级。裸 Bash 启动时间不到50毫秒，裸 Zsh 不到100毫秒，而带有 Oh My Zsh 和插件的 Zsh 启动时间通常为500到1,000毫秒，这是开发者迁移到更轻量插件管理器的最常见原因<sup>[22](https://commandlinux.com/statistics/shell-usage-distribution-bash-vs-zsh-vs-fish-actual-usage-data/)</sup>。当 Bash shell 在 Linux 服务器上运行时，占用约2到4 MB 的常驻内存，而在相同硬件上运行的 GNOME 桌面会话即使空闲也可能占用800 MB 或更多。<sup>[6](https://operatingsystemsauthority.com/operating-system-user-interfaces)</sup>

## 与图形界面和文本用户界面的比较

经典的人机交互证据并未表明 CLI 与 GUI 之间可以简单地分出胜负。一项针对76名用户、涵盖7种代表命令、菜单和图标风格的界面的研究发现，界面风格与性能或偏好无关，但精心的设计与之有关；系统反馈、输入形式、帮助系统和导航辅助方面的困难在三种风格中都有出现<sup>[25](https://dl.acm.org/doi/10.1145/1165385.317490)</sup>。一项比较 Apple Macintosh 直接操作界面与 DOS 的实验室实验发现，直接操作的用户表现明显更好，但在感知易用性上没有差异<sup>[26](https://dl.acm.org/doi/10.2307/249510)</sup>。

**专业水平是分界线。** 在一项针对 UNIX 用户的研究中，只有专家能够成功编写需要管道和其他重定向符号的复合命令，尽管中级用户和新手表现出了所需的组件知识；专家表征了系统结构的更高层次，而新手表征了更低、更具体的层次，包括具体命令<sup>[9](https://www.tandfonline.com/doi/abs/10.1080/07370024.1990.9667156)</sup>。流利需要数年时间：需要五年以上的经验才能开始流畅地编写新的复杂 Unix 命令<sup>[10](https://journals.sagepub.com/doi/10.1177/154193129003400407)</sup>。新手的困难有具体表现：在一项针对22名没有正式接触过计算机的高中女生的研究中，UNIX 组在第二次会话中呼叫在线帮助的次数是使用基于英语的命令语言的组的两倍多，作者得出结论，UNIX 命令语言可能并不更难学，但可能更难用<sup>[27](https://dl.acm.org/doi/10.1145/800045.801595)</sup>。

设计文献解释了专家为何仍然留用。命令行界面比视觉界面更具表现力，尤其是对于复杂任务，并且高度可脚本化<sup>[28](http://www.catb.org/%7Eesr/writings/taoup/html/ch11s04.html)</sup>。代价是高的记忆负担和通常较低的透明度<sup>[28](http://www.catb.org/%7Eesr/writings/taoup/html/ch11s04.html)</sup>。频繁使用的用户会达到一个交叉点，此时 CLI 的简洁性和表现力比避免其记忆负担更有价值<sup>[28](http://www.catb.org/%7Eesr/writings/taoup/html/ch11s04.html)</sup>。GUI 交互并不总是可以直接脚本化，随着任务增长，将其自动化可能会给专家用户带来成本<sup>[28](http://www.catb.org/%7Eesr/writings/taoup/html/ch11s04.html)</sup>。与文本用户界面（TUI）相比，CLI 的优势在于原生自动化，可从脚本和 CI 流水线调用，并在任何支持基本 ANSI 的终端上工作，而 TUI 提供即时视觉提示但自动化有限且可移植性要求更高<sup>[29](https://martinuke0.github.io/posts/2026-03-27-tui-vs-cli-a-deep-dive-into-textbased-user-interfaces/)</sup>。

自动化优势是结构性的。CI/CD 流水线、[Ansible](https://www.edgepedia.org/zh/ansible-software) 和 [Puppet](https://www.edgepedia.org/zh/puppet-software) 等配置管理系统以及云资源配置工具通常通过 CLI 和 API 与操作系统交互，终端前没有人类<sup>[6](https://operatingsystemsauthority.com/operating-system-user-interfaces)</sup>。网络安全专家同样青睐 CLI 来完成网络分析和脚本编写等任务，因为其速度和灵活性<sup>[30](https://www.isteams.net/_files/ugd/185b0a_916f486d4b6344a697f65f8da1c49f7a.pdf)</sup>。

## 安全性与常见陷阱

用户报告的主要问题是记不住，而非危险：70.41%的 Warp 调查受访者将难以记住或难以使用的复杂命令和语法列为痛点，远远领先于脚本和自动化的14.34%和包管理的12%<sup>[11](https://www.warp.dev/state-of-the-cli-2023)</sup>。使 shell 强大的同一套展开机制在执行之前运作：shell 执行单词展开和重定向，并在命令运行之前从参数列表中移除重定向操作符及其操作数<sup>[7](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3%5Fchap02.html)</sup>。

防御措施主要由用户配置。Warp 调查中的主要 shell 定制是自动补全（79.34%）、别名（74.47%）和主题（74.07%）<sup>[11](https://www.warp.dev/state-of-the-cli-2023)</sup>。

## 近期发展

**Rust 重写与新 shell。** Fish 4.0.0 于2025年2月27日发布，标志着该 shell 的 C++ 代码库移植到 Rust<sup>[31](https://github.com/fish-shell/fish-shell/releases/tag/4.0.0)</sup>；Fish 4.5.0 于2026年2月跟进，启动时间不到100毫秒<sup>[22](https://commandlinux.com/statistics/shell-usage-distribution-bash-vs-zsh-vs-fish-actual-usage-data/)</sup>。Nushell 始于2019年，已超越业余爱好阶段，拥有一个数据工程师和 SRE 社区，用其替代 Python 进行一次性流水线处理，尽管仍处于0.x版本<sup>[32](https://www.youngju.dev/blog/culture/2026-05-16-terminal-shell-tools-2026-ghostty-wezterm-alacritty-warp-fish-4-nushell-zellij-starship-deep-dive.en)</sup>。重写浪潮也波及了实用工具：Apple 已开始在 macOS Sequoia 开发者指南中推荐 ripgrep 作为 BSD grep 的替代品<sup>[32](https://www.youngju.dev/blog/culture/2026-05-16-terminal-shell-tools-2026-ghostty-wezterm-alacritty-warp-fish-4-nushell-zellij-starship-deep-dive.en)</sup>。

**终端。** Ghostty 1.0 于2024年12月发布，由[米切尔·桥本](https://www.edgepedia.org/zh/mitchell-hashimoto)用 Zig 编写，历时两年全职开发，全面可用后的第一周就将 GitHub 星标推至数万<sup>[32](https://www.youngju.dev/blog/culture/2026-05-16-terminal-shell-tools-2026-ghostty-wezterm-alacritty-warp-fish-4-nushell-zellij-starship-deep-dive.en)</sup>。Warp 用 Rust 构建，采用 Apple Metal 渲染，在4K macOS 显示器上实现流畅的60fps，定位为 AI 原生终端，具有基于块的 UI 和 LLM 集成<sup>[32](https://www.youngju.dev/blog/culture/2026-05-16-terminal-shell-tools-2026-ghostty-wezterm-alacritty-warp-fish-4-nushell-zellij-starship-deep-dive.en)</sup>；它推出了一款内置 AI 代理的终端，可以根据自然语言指令编写代码、调试问题和自动化工作流<sup>[33](https://www.warp.dev/newsroom/2026/3/31/introducing-the-warp-terminal-with-ai-superpowers)</sup>。

**AI 辅助。** 在终端中使用 AI 的 Warp 调查受访者中，52%使用命令建议，46%使用命令生成，41%预期智能命令生成是 AI 未来最大的影响<sup>[11](https://www.warp.dev/state-of-the-cli-2023)</sup>。独立工具随之而来：nsh 将 shell 包装在 PTY 中，将滚屏历史和命令历史捕获到本地 SQLite 数据库，为跨 zsh、bash、fish 和 PowerShell 的 LLM 查询构建上下文<sup>[34](https://github.com/fluffypony/nsh)</sup>。然而，微软自己的 AI Shell 项目截至2026年1月已不再积极维护，从工程角度应视为已归档<sup>[4](https://learn.microsoft.com/en-us/powershell/utility-modules/aishell/concepts/what-is-a-command-shell?view=ps-modules)</sup>。

CLI 是遗物还是计算中最持久的界面，在从业者中仍存在真实的分歧。使用数据支持持久性：超过一半的受访开发者使用 shell，终端在工作日的大部分时间保持打开，自动化通过 CLI 和 API 运行，终端前没有人类<sup>[8](https://survey.stackoverflow.co/2026/technology/data)</sup><sup> • </sup><sup>[11](https://www.warp.dev/state-of-the-cli-2023)</sup><sup> • </sup><sup>[6](https://operatingsystemsauthority.com/operating-system-user-interfaces)</sup>。可学习性数据支持批评：复合命令的编写需要数年时间，新手在 shell 中比在更简单的命令语言中需要更多帮助<sup>[9](https://www.tandfonline.com/doi/abs/10.1080/07370024.1990.9667156)</sup><sup> • </sup><sup>[27](https://dl.acm.org/doi/10.1145/800045.801595)</sup>。

## References

1. [The UNIX Time-Sharing System (Ritchie & Thompson, CACM 1974)](https://dl.acm.org/doi/pdf/10.1145/357980.358014)
2. [GUI, CLI and TUI: what are they and what's the difference?, TechDows](https://techdows.com/gui-cli-and-tui-what-are-they-and-whats-the-difference.html)
3. [UNIX Time-Sharing System: A Retrospective (Ritchie, Bell System Technical Journal, 1978)](https://ia801401.us.archive.org/10/items/bstj57-6-1947/bstj57-6-1947_text.pdf)
4. [What is a command shell, Microsoft Learn](https://learn.microsoft.com/en-us/powershell/utility-modules/aishell/concepts/what-is-a-command-shell?view=ps-modules)
5. [OS Wars #4: A Shell is Not a Cosmetic, HackMD](https://hackmd.io/@noturno/SkWkXrcwzx)
6. [Operating System User Interfaces: CLI, GUI, and Beyond](https://operatingsystemsauthority.com/operating-system-user-interfaces)
7. [POSIX.1-2017 Shell Command Language, The Open Group](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3%5Fchap02.html)
8. [Technology data 2026, Stack Overflow Developer Survey](https://survey.stackoverflow.co/2026/technology/data)
9. [Expertise in a Computer Operating System: Conceptualization and Performance, Human-Computer Interaction](https://www.tandfonline.com/doi/abs/10.1080/07370024.1990.9667156)
10. [Design Issues for Graphical Unix User Interfaces, Human Factors and Ergonomics Society](https://journals.sagepub.com/doi/10.1177/154193129003400407)
11. [The State of the CLI 2023 Edition, Warp](https://www.warp.dev/state-of-the-cli-2023)
12. [The TTY demystified (Linus Åkesson)](https://www.linusakesson.net/programming/tty/)
13. [The Art of Unix Usability: Command-Line Interfaces (Eric S. Raymond)](http://www.catb.org/%7Eesr/writings/taouu/html/ch02s02.html)
14. [A Research UNIX Reader (Doug McIlroy)](https://www.cs.dartmouth.edu/~doug/reader.pdf)
15. [Unix Oral History (Princeton Unix Archive)](https://mirror.math.princeton.edu/pub/unixarchive/Documentation/OralHistory/finalhis.htm)
16. [The Art of Unix Programming: Origins and History of Unix, 1969-1995 (Eric S. Raymond)](http://www.catb.org/%7Eesr/writings/taoup/html/ch02s01.html)
17. [Windows commands, Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands)
18. [POSIX.1-2024 Shell Command Language, The Open Group](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/utilities/V3_chap02.html)
19. [Linux CLI and GUI: How I Choose the Right Interface for Real Work](https://thelinuxcode.com/linux-cli-and-gui-how-i-choose-the-right-interface-for-real-work-and-how-you-should-too/)
20. [Terminal survey results (Mastodon version), Julia Evans](https://jvns.ca/terminal-survey/results-mastodon)
21. [dash(1) Linux manual page](https://man7.org/linux/man-pages/man1/dash.1.html)
22. [Shell Usage Distribution statistics compilation](https://commandlinux.com/statistics/shell-usage-distribution-bash-vs-zsh-vs-fish-actual-usage-data/)
23. [nushell: A new type of shell, GitHub](https://github.com/younghai/nushell)
24. [Programming, scripting, and markup languages timeseries, Stack Overflow Developer Survey 2026](https://survey.stackoverflow.co/2026/technology/data/languages-timeseries)
25. [User performance with command, menu, and iconic interfaces (CHI)](https://dl.acm.org/doi/10.1145/1165385.317490)
26. [Training end users: an experimental investigation of the roles of the computer interface and training methods, MIS Quarterly](https://dl.acm.org/doi/10.2307/249510)
27. [Is there really trouble with UNIX? (CHI)](https://dl.acm.org/doi/10.1145/800045.801595)
28. [The Art of Unix Programming, Chapter 11: Tradeoffs between CLI and Visual Interfaces (Eric S. Raymond)](http://www.catb.org/%7Eesr/writings/taoup/html/ch11s04.html)
29. [TUI vs CLI: A Deep Dive into Text-Based User Interfaces](https://martinuke0.github.io/posts/2026-03-27-tui-vs-cli-a-deep-dive-into-textbased-user-interfaces/)
30. [Peer-reviewed study comparing CLI and GUI task performance, ISTEAMS](https://www.isteams.net/_files/ugd/185b0a_916f486d4b6344a697f65f8da1c49f7a.pdf)
31. [fish 4.0.0 release notes, fish-shell GitHub](https://github.com/fish-shell/fish-shell/releases/tag/4.0.0)
32. [Terminal & Shell Tools 2026 deep dive, youngju.dev](https://www.youngju.dev/blog/culture/2026-05-16-terminal-shell-tools-2026-ghostty-wezterm-alacritty-warp-fish-4-nushell-zellij-starship-deep-dive.en)
33. [Introducing the Warp Terminal with AI superpowers, Warp](https://www.warp.dev/newsroom/2026/3/31/introducing-the-warp-terminal-with-ai-superpowers)
34. [fluffypony/nsh, GitHub](https://github.com/fluffypony/nsh)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Operating systems › Operating system concepts

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/command-line-interface

English original: https://www.edgepedia.org/command-line-interface
