/etc/profile
/etc/profile.d/*.sh
~/.bash_profile
~/.bashrc
/etc/bashrc
/etc/profile ~/.bash_profile ~/.bashrc /etc/bashrc 命令提示符
/etc/profile /etc/profile.d/*sh
source 文件名
. 文件名
注销时生效的环境变量配置文件
~/.bash_logout
历史记录文件
~/.bash_history
本地终端欢迎信息:
/etc/issue
远程终端欢迎信息:
/etc/issue.net
登录后欢迎信息:不管本地登录,还是远程登录,都会生效
/etc/motd
本文详细介绍了 Linux 系统中重要的 Shell 配置文件,包括 /etc/profile、~/.bash_profile、~/.bashrc 等的作用及区别,并说明了这些文件是如何影响用户的命令提示符设置、环境变量配置等。

被折叠的 条评论
为什么被折叠?



