是否有系统上所有用户的全局.bash_profile?

所以我偶然发现 svn color,并认为这是我们所有开发人员都会欣赏的有用的东西.为此我读了一下说在〜/ .bash_profile中放了一些代码,但是我想知道如何在服务器上全局包含它,所以这是每个人的认值.是否有一些全局.bash_profile我可以添加这个?也许另一种方式?
要为系统上的所有用户包含命令,请使用/ etc / profile.

http://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files

When Bash is invoked as an interactive login shell,or as a
non-interactive shell with the –login option,it first reads and
executes commands 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.

认情况下,某些发行版也会读取/etc/profile.d/*,您可以将自定义设置放在那里.见http://bash.cyberciti.biz/guide//etc/profile.d

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...