使用命令/usr/bin/vim /etc/environment将即可进入environment文件,将其恢复为修改前保存退出,再执行source /etc/environment命令或者重启系统即可。