Linux:-bash: ls: command not found;Linux:-bash: ***: command not found等每次打开终端都要重新设置,一次性解决方法(红帽Linux)
来源:互联网 发布:培训学校网站源码 编辑:程序博客网 时间:2024/04/30 04:20
在这个http://www.linuxidc.com/Linux/2012-08/68900.htm 前提下可以用,但是没有根本性解决打开终端就可以用ls等shell命令的,不妨试试我的方法:
前提是:在添加:export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
注意最后没有标点;
1、先添加export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
保证ls等可以临时使用的前提,
使用命令:vi /etc/profile
吧最后一行的的export ......换成:export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 2、vi /root/.bashrc
吧如果有export把他换成:export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
即可;
其实问题在于如果你存在/bin, /usr/bin, /usr/local/bin, /sbin
linux只是 修改/bin, /usr/bin, /usr/local/bin, /sbin路径即可!
0 0
- Linux:-bash: ls: command not found;Linux:-bash: ***: command not found等每次打开终端都要重新设置,一次性解决方法(红帽Linux)
- linux下 bash:command not found解决方法
- Linux -bash: java: command not found 解决方法
- Linux:-bash: ***: command not found,
- Linux:-bash: ***: command not found
- Linux:-bash: ***: command not found
- Linux:-bash: ***: command not found
- Linux:-bash: ***: command not found
- linux bash command not found
- LINUX中报错 -bash:ls:command not found
- -bash : ls:command not found
- -bash: ls: command not found
- -bash: ls: command not found
- Linux问题解决:bash,shutdown command not found
- linux下提示 -bash: ******* :command not found
- linux下提示bash:command not found
- linux下提示bash:command not found
- linux下报错bash: service: command not found
- 自动控制的故事
- 单链表的结构体定义与声明
- Lua-cjson的safe模块
- Trie树
- git rebase -i HEAD~*
- Linux:-bash: ls: command not found;Linux:-bash: ***: command not found等每次打开终端都要重新设置,一次性解决方法(红帽Linux)
- Linux内核创建一个新进程的过程
- 使用LuaSocketHttp注意的地方
- Spring Integration in action 3 - 集成系统
- 三维空间中直线与平面的交点
- 【Arduino学习笔记】手把手教你使用ESP8266----①接线篇
- iOS开发之牛逼资源——那些不能错过的Xcode插件
- VTK学习资源
- 数据库常见笔试面试题