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.
在 Windows 上,我可以LOGONSERVER通过此命令获取环境变量名称。
LOGONSERVER
sudo %LOGONSERVER%
我需要在 MAC OS X 上找到确切的东西。有什么帮助吗???
好的。感谢anisshsane,我找到了答案。在 Unix/OSX 中,替代方法是HOSTNAME. 所以
HOSTNAME
echo $HOSTNAME
为我做了伎俩。