bash的启动文件

文件名称

功能描写叙述

/etc/profile

登录时自己主动运行

~/.bash_profile,~/.bash_login,~/.profile

登录时自己主动运行

~/.bashrc

shell登录时自己主动运行

~/.bash_logout

退出时自己主动运行

~/.bash_history

记录近期会话的命令

/etc/passwd

记录用户资源等信息

原文地址:https://www.cnblogs.com/yutingliuyl/p/7019627.html