简体   繁体   English

终端 mac - 找不到 bash 命令,权限被拒绝,提示中显示“>”

[英]terminal mac - bash command not found, permission denied and '&gt' in prompt

I tried to change colors in terminal following this guide: http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/我尝试按照本指南更改终端中的颜色: http : //osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/

I created bash_profile file, saved and quit terminal.我创建了 bash_profile 文件,保存并退出终端。 Now when I open the terminal I get this:现在,当我打开终端时,我得到了这个:

Last login: Mon Oct 17 01:36:24 on ttys000

-bash:  : command not found

-bash:  : command not found

-bash:    git: command not found

-bash: gt: command not found

-bash: /dev/null: Permission denied

->> $ this last line is changed on stackoverflow. ->> $ 在 stackoverflow 上更改了最后一行。 I do not understand why.我不明白为什么。 Please look at the photo below.请看下面的照片。

I deleted bash_profile and I still get the same.我删除了 bash_profile,但我仍然得到相同的结果。

在此处输入图片说明

I did not use the flag asking for moving the post as suggested in the comment because I had already posted the same post on AskDifferent.我没有按照评论中的建议使用要求移动帖子的标志,因为我已经在 AskDifferent 上发布了相同的帖子。

The answer to the problem is on AskDifferent: https://apple.stackexchange.com/questions/257603/terminal-change-of-colours-guide-file-bash-profile-bash-not-found-permissi问题的答案在 AskDifferent 上: https ://apple.stackexchange.com/questions/257603/terminal-change-of-colours-guide-file-bash-profile-bash-not-found-permissi

The problem with a syntax error is caused by HTML markup in the source I copy/pasted this from.语法错误的问题是由我复制/粘贴的源代码中的 HTML 标记引起的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM