macos – 不能在.bash_profile中使用错误的终端

我在Mac OS X上向我的.bash_profile添加了一些内容,但是它们出错了.现在,当我启动终端时,这是我的整个文本日志:
Last login: Thu Oct 25 23:10:03 on ttys000
dirname: illegal option -- b
usage: dirname path
-bash: /bin/naoqi-bin: No such file or directory
-bash: exec: /bin/naoqi-bin: cannot execute: No such file or directory

[Process completed]

问题是,由于“过程完成”,我无法使用终端.我如何访问.bash_profile(我无法找到如何从finder中找到),或者如何再次正常运行终端以便我可以从.bash_profile文件获取它?

打开终端,然后转到文件(或Shell) – >新命令.键入open -e .profile(或替换其他文件而不是.profile),然后单击Run.这应该打开TextEdit与您要修复的文件;你可以删除那里的违规行.

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...