mac 终端保存环境变量后 ls 等命令不能找到(command not fond)
来源:互联网 发布:java怎么清理cookie 编辑:程序博客网 时间:2024/06/01 07:38
改过bash_profile这个文件,最后不知怎么的只有cd命令能执行,我猜测可能修改bash_profile文件后没有保存 导致的 保存命令是: source .bash_profile
说下我的解决方法:
1,在命令行中输入:
- export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
这样可以保证命令行命令暂时可以使用。命令执行完之后先不要关闭终端。
2,输入
- cd ~/
进入当前用户的home目录。
3,创建bash_profile 执行命令:
- touch .bash_profile
4,打开并编辑bash_profile 执行命令:
1.清空.bash_profile文件中的所有自己配置的东西,然后保存
source .bash_profile
2.终端上可以正常的打命令了
0 0
- mac 终端保存环境变量后 ls 等命令不能找到(command not fond)
- -bash: ls: command not found 或ifconfig ,su 等命令不能使用
- Linux 系统命令command not found,如ls、cd等
- Mac上终端执行命令出现command not found解决办法
- ls -bash: ls: command not found 修改 /etc/profile 后命令不识别
- mac 终端 command not found
- Linux环境变量修改后,众多命令提示command not found
- Linux:-bash: ls: command not found;Linux:-bash: ***: command not found等每次打开终端都要重新设置,一次性解决方法(红帽Linux)
- Mac上安装MySQL后在终端连接不上数据库Command not found
- Mac添加环境变量,解决command not found
- Root路径设置错误,命令不能找到,command not found 的解决办法
- mac 解决 ls 等命令失效问题
- Mac系统终端命令行不执行命令 总出现command not found解决方法
- Mac系统终端命令行不执行命令 总出现command not found解决方法
- Mac系统终端命令行不执行命令 总出现command not found解决方法
- Mac系统终端命令行不执行命令 总出现command not found解决方法
- Mac系统终端命令行不执行命令 总出现command not found解决方法
- Mac系统终端命令行不执行命令 总出现command not found解决方法
- 【php】使用重定向,伪装表单处理页面不存在
- WIN7刻录MOV文件到光盘分享
- numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
- XenDesktop/XenApp 7.x 禁用/设置超时自动断开会话
- 个人重构——职责链模式
- mac 终端保存环境变量后 ls 等命令不能找到(command not fond)
- Direct-Load-apk启动插件的原理
- iOS之禁止横屏
- 从购买春节火车票,看互联网公司不应该做“恶”
- 广播机制(Broadcast Receiver)——第一行代码阅读笔记
- 第五周项目一体验常成员函数
- wireshark 可以过滤 https
- 毕晓英第二章14题
- Quartz之QuartzInitializerServlet