解决centos下bash: xxx: command not found,centosbash


如果因为在/etc/profile文件中设置一些环境变量导致 系统命令不可用总是出现:

-bash: xxx: command not found

那证明对了,你修改环境变量出现问题了,不要慌,还好有export命令供你使用:

export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin

使用上面的命令就可以使用常用命令了,但只是针对此次修改,现在不修改 profile文件更待何时?

将profile文件中出错的部分修改过来source /etc/profile文件就 ok!

相关内容

    暂无相关文章