终端找不到Bash

时间:2015-05-27 18:32:59

标签: bash

我是初学者,所以请耐心等待。我正在做关于Ruby on Rails的lynda.com教程和在nano .bash_profile然后export PATH="usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"中键入的终端。现在我每次登录时都收到消息:

 -bash: export: `/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin': not a valid identifier 

我甚至当我试图使用which $SHELL找到它时,它说没有这样的文件或目录。我该怎么做才能解决这个问题?

1 个答案:

答案 0 :(得分:1)

PATH="usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"

应该是

PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"