`.bashrc` 等中的 'rc' 是什么意思?

Ian*_*non 201 linux unix bash bashrc

嗯,这很尴尬。在与他们一起工作 10 年后,我觉得我刚刚意识到我不知道忠诚的同事的名字。“嘿,呃…… *咳!*,感谢你今天早上在设置我的别名方面所做的出色工作……”

什么字母rc中表示.bashrc.kshrc等?

如果你知道,请引用来源。

即使你不知道,我也欢迎毫无根据的假设、建议或替代方案,如果它们被标记为这样的话。

Gil*_*il' 244

它代表“运行命令”。

这来自MITCTSS(兼容分时系统)Multics,其中命令处理 shell 将是一个普通程序的想法起源于此。CTSS 有一个名为 RUNCOM(用于“运行命令”)的程序,一个脚本在 Unix 起源的社区中被称为“a runco​​m”,导致文件扩展名.rcrc缩写。

rc 作为任何命令列表的名称卡住。

  • 啊啊啊啊!谢谢!鉴于链接中的引用-“有一个可以执行一堆命令的工具”-我很高兴他们没有将其称为 .basheaboc (15认同)

Ala*_*tko 45

它代表“运行命令”。

来自维基百科

术语 rc 代表短语“运行命令”。它用于任何包含命令启动信息的文件。据信,它起源于 1965 年的某个地方,来自麻省理工学院兼容分时系统 (CTSS) 的一个 runco​​m 设施。

来自 Brian Kernighan 和 Dennis Ritchie:“有一种工具可以执行存储在文件中的一堆命令;它被称为 runco​​m 表示‘运行命令’,并且该文件开始被称为‘a runco​​m’。Unix 中的 rc 是那个用法的化石。”

Multics 工程师 Tom Van Vleck 也回忆起扩展 rc:“让命令处理 shell 成为普通从程序的想法来自 Multics 设计,Louis Pouzin 在 CTSS 上的前身程序称为 RUNCOM,来源某些 Unix 配置文件上的“.rc”后缀。”

这也是汤姆·达夫 (Tom Duff) 的贝尔实验室 shell 中的 Plan 9 名称的由来,即 rc shell。之所以称为“rc”,是因为 shell 的主要工作是“运行命令”。

虽然在历史上并不精确,但 rc 也可以扩展为“运行控制”,因为 rc 文件控制程序的运行方式。例如,编辑器 Vim 查找并读取 .vimrc 文件的内容以确定其初始配置。在The Art Of Unix Programming 中,Eric S. Raymond 始终将 rc 文件称为“运行控制”文件。


小智 10

来自Ask Ubuntu上的djeikyb

我听说

  • 运行命令
  • 资源控制
  • 运行控制
  • 运行时配置

就个人而言,我会选择运行控制,因为 ESR 是这么说的。

http://www.catb.org/~esr/writings/taoup/html/ch10s03.html

他的脚注说:

The ‘rc’ suffix goes back to Unix's grandparent, CTSS.
It had a command-script feature called "runcom". Early
Unixes used ‘rc’ for the name of the operating system's
boot script, as a tribute to CTSS runcom.
Run Code Online (Sandbox Code Playgroud)

维基百科选择“运行命令”作为默认的长格式,但承认上下文应该决定词的选择。

While not historically precise, rc may also be pronou-
nced as "run control", because an rc file controls how
a program runs. For instance, the editor Vim looks for
and reads the contents of the .vimrc file to determine
its initial configuration. The most sensible pronunci-
ation depends on the function of the file: to start
something up, or to control how something starts up.
Run Code Online (Sandbox Code Playgroud)

http://en.wikipedia.org/wiki/Run_Commands

  • ESR 似乎自相矛盾。“runco​​m”是“运行控制”的缩写吗? (2认同)