上一篇 下一篇 分享链接 返回 返回顶部

centos下bash: command not found

发布人:杨俊杰 发布时间:2024-11-07 09:15 阅读量:1094

国内VPS 解决centos下bash: xxx: command not found

如果因为在 /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!

 

目录结构
全文