在我的Linux主文件夹中,我有几个以“rc”作为文件扩展名的配置文件:

$ ls -a ~/|pcregrep 'rc$'
.bashrc
.octaverc
.perltidyrc
.screenrc
.vimrc

这些名字中的"rc"是什么意思?


它看起来像以下其中之一:

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


我还找到了一个引用:

' rc '后缀可以追溯到Unix的祖父CTSS。它有一个名为“runcom”的命令脚本功能。早期的unix使用“rc”作为操作系统引导脚本的名称,作为对CTSS runcom的致敬。

运行时配置,如果它在config目录下。我认为它们是资源文件。如果你在文件名中看到rc,这可能是版本,即发布候选。

编辑:不,我正式收回我的话……“运行命令”

[Unix: from runcom files on the CTSS system 1962-63, via the startup script /etc/rc] Script file containing startup instructions for an application program (or an entire operating system), usually a text file containing commands of the sort that might have been invoked manually once the system was running but are to be executed automatically each time the system starts up. Thus, it would seem that the "rc" part stands for "runcom", which I believe can be expanded to "run commands". In fact, this is exactly what the file contains, commands that bash should run.

.bashrc中的“rc”代表什么?

我学到了新东西!:)

为了理解rc文件,了解Ubuntu引导到几个不同的运行级别是有帮助的。它们是0-6,0表示“停止”,1表示“单用户”,2表示“多用户”(默认运行级别),等等。这个系统现在已经被大多数Linux发行版中的Upstart和initd程序淘汰了。它仍然是为了向后兼容而维护的。

在/etc目录中有几个标记为“rc0”的文件夹。d, rc1。通过rc6.d等。这些是内核参考的目录,以了解它应该为该运行级别运行哪些init脚本。它们是到驻留在/etc/init.中的系统服务脚本的符号链接d目录。

在使用它的上下文中,似乎列出了名称中带有rc的任何文件。这些文件中的代码将设置服务/任务在初始化时启动和运行的方式。

在Unix世界中,RC代表“运行控制”。

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

在类unix系统的上下文中,术语rc代表短语“运行命令”。它用于包含命令启动信息的任何文件。据信,它起源于1965年麻省理工学院兼容分时系统(CTSS)的一个runcom设施。

参考:https://en.wikipedia.org/wiki/Run_commands