shell登录两种方式分类 阿瑞斯Devops 2024-09-29 73 阅读1分钟 shell登录两种方式分类: shell登录有两种方式: 交互式登录 非交互式登录 注意: 不同配置文件优先级不同,再同一个文件中位置不同执行顺序也会不同,会出现覆盖的情况。 1.非交互式执行 /etc/profile.d/*.sh /etc/bashrc .bashrc 2.交互式登录 配置文件执行 /etc/profile /etc/profile.d/*.sh ~/.bash_profile /.bashrc /etc/bashrc