快餐100微信-同城空降官方网站入口,附近约一泡50元,51品茶一品阁

关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

解决centos下bash: xxx: command not found

发布时间:2024/11/5 13:42:42
香港云服务器

国内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!