可以通过--noprofile --norc 忽略坏配置进行清除
[root@elk93 ~ ]$ bash --noprofile --norc
bash-5.1# sed -i '/bind/d' /root/.bashrc
bash-5.1# sed -i '/bind/d' /etc/profile
bash-5.1# exec bash
可以通过--noprofile --norc 忽略坏配置进行清除
[root@elk93 ~ ]$ bash --noprofile --norc
bash-5.1# sed -i '/bind/d' /root/.bashrc
bash-5.1# sed -i '/bind/d' /etc/profile
bash-5.1# exec bash