Re: 請教一個笨問題關於/etc/rc.conf

看板FreeBSD作者時間19年前 (2006/11/11 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/10 (看更多)
※ 引述《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
文章代碼(AID): #15LCnm00 (FreeBSD)
討論串 (同標題文章)
文章代碼(AID): #15LCnm00 (FreeBSD)