Re: 請教一個笨問題關於/etc/rc.conf
※ 引述《parus1974@kkcity.com.tw (被當的法師學徒)》之銘言:
> RC.CONF本來就是執行指令
> ※ 引述《chiouss.bbs@ptt.cc (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 執行中所產生的變數都會出現在呼叫者的變數空間中。
結束~~~
--
thinker@branda.to thinker.li@gmail.com
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
討論串 (同標題文章)
完整討論串 (本文為第 9 之 10 篇):
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章