命令行界面,简称 CLI,是一种通过键入文本命令与计算机程序交互的用户界面方式。用户在终端或控制台中输入指令,系统执行后返回文本结果,与图形用户界面(GUI)相对。
/kəˈmænd laɪn ˈɪntərˌfeɪs/
Developers often prefer the command line interface because it allows faster and more precise control over the system.
开发者通常更喜欢命令行界面,因为它能更快、更精确地控制系统。
Before graphical user interfaces became widespread, the command line interface was the primary way people interacted with computers, requiring users to memorize specific commands and syntax.
在图形用户界面普及之前,命令行界面是人们与计算机交互的主要方式,用户需要记住特定的命令和语法。
command 源自古法语 comander,意为"命令、指挥",最终来自拉丁语 commandare。line 源自古英语 līne,指"线、行",在此指用户输入的一行文本。interface 由前缀 **inter-**(之间)和 face(面)组成,20世纪中期开始用于描述人与机器之间的交互层。整个短语在20世纪70年代随着个人计算机的发展而广泛使用,用以区分文本输入方式与后来出现的图形界面。