Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对在/etc/env.d目录中设置变量感到困惑。当我从用户那里写信echo $PATH时 - 它会打印我自己设置的所有变量。但是从根我看到一个......我应该在哪里为根设置变量?
/etc/env.d
echo $PATH
您应该设置ROOTPATH而不是PATH在 /etc/env.d/* 文件中。
ROOTPATH
PATH