加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-16 01:11:24 所属栏目:安全 来源:网络整理
导读:我在Mac OS X上向我的.bash_profile添加了一些内容,但是它们出错了.现在,当我启动终端时,这是我的整个文本日志: Last login: Thu Oct 25 23:10:03 on ttys000dirname: illegal option -- busage: dirname path-bash: /bin/naoqi-bin: No such file or direc
我在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与您要修复的文件;你可以删除那里的违规行.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读