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
Try using the absolute path of the command