是否可以强制 bash 重新加载 .profile 文件而无需注销并重新登录?
这应该适用于当前终端:
. ~/.profile
.
是bash
内置函数和同义词source
,请参阅man bash
:
. filename [ arguments ]
source filename [ arguments ]在当前 shell 环境 (...) 中
从filename读取和执行命令。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句