Linux中rc文件的含义

Linux中经常会遇到以rc命名的文件或者文件夹,例如:rcrc.drc0.d rc.sysinit~./bashrc   rc代表什么呢?

       1Run-Control

       在《The art of Unix programming 》一书的第十章中,rc文件为Run-ControlFiles:

       Chapter 10.Configuration
      Run-ControlFiles
      
A run-control file is a file ofdeclarations or commands associated with a program that it interprets on startup. If aprogram has site-specific configuration shared by all users at a site, it willoften have a run control file under the /etc directory. (Some Unixes have an/etc/conf subdirectory that collects such data.)

       User-specificconfiguration information is often carried in a hidden run-control file in theuser's home directory. Such files are often called ‘dotfiles’ becausethey exploit the Unix convention that a filename beginning with adot is normally invisible to directory-listing tools.

       2Run Commands

       很多rc文件里给出了rc的定义:

       definition: rc file: Script filecontaining startup instructions for an application program (or an entireoperating system), usually a text file containing commands of the sort thatmight have been invoked manually once the system was running but are to beexecuted automatically each time the system starts up.
      
Source: Linux Guide @FirstLinux /Linux Dictionary V 0.16
       http://www.tldp.org/LDP/Linux-Dictionary/html/index.html
       Author: Binh Nguyenlinuxfilesystem(at)yahoo(dot)com(dot)au

       TheFreeDictionaryrc file中,说到:

       rc file - /R Cfi:l/ [Unix: from the startup script "/etc/rc", but this is commonlybelieved to have been named after older scripts to "runcommands"] Script file containing startup instructions for anapplication program (or an entire operating system), usually a text filecontaining commands of the sort that might have been invoked manually once thesystem was running but are to be executed automatically each time the systemstarts up. See also dot file, profile (sense 1).

       3Runlevel Changes

       fedora 12/etc/rc文件中,对RC的定义为:

       # rc            This file is responsible forstarting/stopping

       #               services when the runlevelchanges.

      

       总起来说, rc 文件 ( ) 就是在系统初始化阶段运行的一个配置脚本文件 ( ) ,一般应以经典著作 The artof Unix programming 》一书的 Run-ControlFiles 为准。
  • 2
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值