在$SHELL
UNIX系统上,首先在哪里设置环境变量?
如何找到并打印终端的所有此类默认设置?
传统上,通过login(1):
ENVIRONMENT
login sets the following environment variables:
HOME The user's home directory, as specified by the password
database.
SHELL The user's shell, as specified by the password database.
尽管这些天可能是由窗口管理器或终端程序进行这些设置,具体取决于Unix的风格以及与传统的距离。env
会显示环境中当前设置的内容,其中的shell或其他内容可能已更改为默认值。但是,“终端设置”通常不是环境变量,shell喜欢bash
或zsh
具有set
命令,并且它们在其他地方隐藏设置...
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句