首页 > TAG信息列表 > TSDEVICE

linux文件系统-/etc/profile.d

原理 /etc/profile文件中有如下一段脚本: if [ -d /etc/profile.d ]; then for i in /etc/profile.d/*.sh; do if [ -r $i ]; then . $i fi done unset i fi 在每次启动时,自动加载并执行/etc/profile.d 下的*.sh,让*.sh中配置的变量生效。 /etc/profile.d/*.s