我光盘到我的'~‘目录,然后我用别名bash_profile的nano ~/.bash_profile制作了一个alias test = 'mkdir test'
然后,当我输入source ~/.bash_profile时,上面写着
-bash: alias: mk: not found
-bash: alias: =: not found
-bash: alias: mkdir test: not found`为什么会这样呢?
发布于 2017-02-20 09:27:19
您必须删除=周围的空白。
alias test='mkdir test'会起作用的。
https://askubuntu.com/questions/885278
复制相似问题