Mac上的bash_profile似乎已被破坏

时间:2016-04-05 17:12:24

标签: macos terminal .bash-profile

我正在尝试使用node.js而我正在更改一些变量,而我似乎对终端造成了一些损坏,我无法逆转。

每当我打开终端时,它会说

Last login: Tue Apr  5 19:00:57 on ttys001
-bash: export: `=': not a valid identifier
-bash: export: `/usr/local/Cellar/mongodb/3.2.0': not a valid identifier
-bash: export: `/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/bin': not a valid identifier
-bash: alias: ll: not found
-bash: alias: =: not found
-bash: alias: ls -lahG: not found
env: bash: No such file or directory
-bash: which: command not found
-bash: which: command not found
-bash: which: command not found
-bash: uname: command not found
-bash: ps: command not found
-bash: touch: command not found
Adams-MacBook-Pro:~ adamkatz$ 

如果我尝试打开bash_profile,它会说:

permission denied

如果我使用sudo命令,它会说:

sudo not found

许多其他命令都会出现此错误。

env: bash: No such file or directory

那么我如何将bash_profile重置为启动位置?

感谢您的帮助

0 个答案:

没有答案