linux--redhat 开始show “ warning: shell level (1000) too high, resetting to 1”

机器重启后发现机器show“  warning: shell level (1000) too high, resetting to 1”,回想了一下之前做了哪些操作,在reboot前我对/etc/profile 文件进行了环境变量的改变,当时没有注意到我改完profile后有没有什么问题,提示了我“”

-bash: /etc/profile: Permission denied

“”但是没有注意到这个问题,现在重新进入系统(此时不是root用户),重新编辑profile 文件的时候发现第一行的# 没了。

需要加上#就好了。

posted @ 2020-10-12 20:33  正霜霜儿  阅读(3628)  评论(0编辑  收藏  举报