我在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文件中获取该信息?

最佳答案

打开Terminal,然后转到File (or Shell) -> New Command。输入open -e .profile(或用其他文件代替.profile),然后单击“运行”。那应该用您要修复的文件打开TextEdit。您可以在此处删除违规行。

10-08 08:10
查看更多