看板FreeBSD
标 题Re: 请教一个笨问题关於/etc/rc.conf
发信站SayYA 资讯站 (Sat Nov 11 02:07:32 2006)
转信站ptt!ctu-reader!news.nctu!SayYa
※ 引述《[email protected] (被当的法师学徒)》之铭言:
> RC.CONF本来就是执行指令
> ※ 引述《[email protected] (Alive a Life)》之铭言:
> > 我一直不懂,rc.conf 几时可以放 command 进去执行了?
> > NAME
> > rc.conf -- system configuration information
来解释一下好了...
/etc/rc.conf 是一个 script 档,只是其用途是专门手以设定一些变数。
其它 script (/etc/rc.d/*) 则是执行这个 /etc/rc.conf 以读取变数值。
在任何一个 /bin/sh 的 shell script 执行下面指令
. /etc/rc.conf
则会使 shell 在目前的 namespace 执行 /etc/rc.conf 这个 script,也就是
/etc/rc.conf 执行中所产生的变数都会出现在呼叫者的变数空间中。
结束~~~
--
[email protected] [email protected]
http://heaven.branda.to/~thinker/GinGin_CGI.py
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: 219-84-9-197-adsl-tpe.dynamic.so-net.net.tw