有人知道/etc/profile文件和~/..bash_profile文件之间的区别吗?哪个是先执行的?
发布于 2014-11-04 14:49:44
When bash is invoked as an interactive login shell, or as a non-inter‐
active shell with the --login option, it first reads and executes com‐
mands from the file /etc/profile, if that file exists. After reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands from the first one that
exists and is readable. The --noprofile option may be used when the
shell is started to inhibit this behavior.这是从man bash逐字提取的。男人是你的朋友:)
https://askubuntu.com/questions/545591
复制相似问题