search

Home  >  Q&A  >  body text

linux - Alibaba Cloud centos server cannot execute any commands after modifying /etc/enviroment and restarting

There is no content in the original /etc/enviroment. I added a directory to it, and then after restarting, I received an error when executing any command, and vim could not be used. Even if you want to change the environment back, it won't work. As shown in the picture

世界只因有你世界只因有你2725 days ago530

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-06-07 09:25:46

    Try using the absolute path of the command

    reply
    0
  • Cancelreply