Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "rc" mean in dot files

Tags:

linux

rc

In my home folder in Linux I have several config files that have "rc" as a file name extension:

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

What does the "rc" in these names mean?

like image 464
bessarabov Avatar asked Jun 14 '12 09:06

bessarabov


People also ask

What does rc stand for in files?

The rc at the end of a file is related to the phrase "run commands"; its use derives from the /etc/rc. * files used to start most Unix systems. The rc suffix is commonly used for any file that contains startup information for a program. Common rc files include . newsrc , .

What does rc mean configuration?

rc Configuration Files Names including rc often signify files or directories of files with code. Specifically, this code consists of commands that are meant to run when a program is executed. Indeed, that program can be an application, but it can also be a whole operating system.

Why is it called RC file?

It is called "rc" because the main job of a shell is to "run commands". While not historically precise, rc may also be expanded 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.


4 Answers

It looks like one of the following:

  • run commands
  • resource control
  • run control
  • runtime configuration

Also I've found a citation:

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.

like image 196
Ribtoks Avatar answered Nov 18 '22 22:11

Ribtoks


Runtime Configuration normally if it's in the config directory. I think of them as resource files. If you see rc in file name this could be version i.e. Release Candidate.

Edit: No, I take it back officially... "run commands"

[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.

Quoted from What does “rc” in .bashrc stand for?

I learnt something new! :)

like image 41
Prometheus Avatar answered Nov 18 '22 23:11

Prometheus


In the context of Unix-like systems, the term rc stands for the phrase "run commands". It is used for any file that contains startup information for a command. It is believed to have originated somewhere in 1965 from a runcom facility from the MIT Compatible Time-Sharing System (CTSS).

Reference: https://en.wikipedia.org/wiki/Run_commands

like image 27
Nelssen Avatar answered Nov 18 '22 22:11

Nelssen


In Unix world, RC stands for "Run Control".

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

like image 42
Chung Lim Avatar answered Nov 18 '22 23:11

Chung Lim