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?

share|improve this question
14  
2  
Same question asked here: bbs.archlinux.org/viewtopic.php?id=13052 – Prometheus Jun 14 '12 at 10:00
    
@JoachimPileborg spoiler! – n611x007 Nov 15 '13 at 7:08
1  
I am more curious about how do programs 'know' which rc files to read from? For example, .vimrc is loaded before Vim starts. .pylintrc is loaded before pylint starts. I assume .bashrc is for the Terminal, but then again .bash_profile does the same. So were these file names pre-defined for each program and some, like the terminal, even recognize multiple configuration files? – Sean Jul 25 '16 at 15:24
    
@Sean "So were these file names pre-defined for each program and some, like the terminal, even recognize multiple configuration files?" Yes. – Code-Apprentice Jan 20 '17 at 5:04
up vote 141 down vote accepted

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.
share|improve this answer
2  
yep there are a lot of different answers. just think of them as resource files and we are good :) I fav Runtime Configuration or resource control. – Prometheus Jun 14 '12 at 9:56
14  
The "rc" naming convention of "rc files" was inspired by the "runcom" facility mentioned above and does not stand for "resource configuration" or "runtime configuration" as is often wrongly guessed. en.wikipedia.org/wiki/Rc_file – Dan K.K. Oct 27 '13 at 14:14
2  
"found a citation" - where? – n611x007 Nov 15 '13 at 7:09
7  
    
Why not reconfiguration? Which would be very accurate, as for customization of the default configuration. – Chinggis6 Mar 11 '17 at 9:10

Runtime Configuration normally if it's in the config. 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 official.... "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.

Quote: https://unix.stackexchange.com/questions/3467/what-does-rc-in-bashrc-stand-for

I learn something new. :)

share|improve this answer
2  
+1 for Release Candidate, even if its not the 'rc in bashrc' – n611x007 Nov 15 '13 at 14:27

To understand rc files, it helps to know that Ubuntu boots into several different runlevels. They are 0-6, 0 being "halt", 1 being "single-user", 2 being "multi-user"(the default runlevel), etc. This system has now been outdated by the Upstart and initd programs in most Linux Distros. It is still maintained for backwards compatibility.

Within the /etc directory are several folders labeled "rc0.d, rc1.d" etc, through rc6.d. These are the directories the kernel refers to to know which init scripts it should run for that runlevel. They are symbolic links to the system service scripts residing in the /etc/init.d directory.

In the context you are using it, it would appear that you are listing any files with rc in the name. The code in these files will set the way the services/tasks startup and run when initialized.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.