- 代碼: 選擇全部
Init sets the following environment variables for all its children:
PATH /usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
INIT_VERSION
As the name says. Useful to determine if a script runs directly
from init.
RUNLEVEL
The current system runlevel.
PREVLEVEL
The previous runlevel (useful after a runlevel switch).
CONSOLE
The system console. This is really inherited from the kernel;
however if it is not set init will set it to /dev/console by
default.
但小弟使用 env 指令檢查時,未能找到 RUNLEVEL, PREVLEVEL, CONSOLE 這三個變數,請問這是怎麼一回事呢 ?