如果Linux无论使用什么命令都出现了command not found,那可能是在配置/etc/profile或者/etc/profile.d/xx.sh环境变量有配置错误,导致全局的PATH不能使用,这个时候可以使用全路径来重新编辑环境变量,并重新刷新就可以了。
/usr/bin/vim /etc/profile source /etc/profile
欢迎分享,转载请注明来源:内存溢出
如果Linux无论使用什么命令都出现了command not found,那可能是在配置/etc/profile或者/etc/profile.d/xx.sh环境变量有配置错误,导致全局的PATH不能使用,这个时候可以使用全路径来重新编辑环境变量,并重新刷新就可以了。
/usr/bin/vim /etc/profile source /etc/profile
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)