-bash命令没有发现苹果的终端? [英] Mac terminal -bash command not found?

查看:105
本文介绍了-bash命令没有发现苹果的终端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全新的使用终端,并试图使用 BREW 来安装一些东西,我做了一件 PATH 。现在,如果我告诉它做一些事情,它总是返回

I'm completely new to using terminal, and while trying to use brew to install some stuff, I did something to PATH. Now if I tell it to do something it always returns

-bash:胡说:找不到命令

-bash: blah: command not found.

有什么办法重置的东西来解决这个问题?我该怎么办?

Is there any way to reset something to fix this? What should I do?

推荐答案

您路径通常是在您的任.profile或.bashrc文件设置。这些都是在用户的主目录的根目录中找到。

Your path is usually set in either your .profile or .bashrc file. These are found in the root of your user's home directory.

您应该能够通过在终端运行这两个命令来解决这些问题。它们包含了默认的可执行路径

You should be able to fix them by running these two commands in the terminal. They contain the default executable paths

export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"

这篇关于-bash命令没有发现苹果的终端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆