bash: 导出: `/home/mohin/.bashrc': 不是一个有效的标识符 [英] bash: export: `/home/mohin/.bashrc': not a valid identifier
问题描述
当我打开终端时,它显示了这一行.
When I Open my terminal, it showing this line.
bash: export: `/home/mohin/.bashrc': not a valid identifier
mohin@mohin:~$
我使用的是 Ubuntu 16.04.
I am using Ubuntu 16.04.
我在遇到这个麻烦之后使用了这行表扬
I used this line of commend after that I am facing this trouble
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
我通过以下链接从 MEDIUM Post 得到了这条线
I got this line from MEDIUM Post at the following link
我需要解决它.请帮帮我.
I need to solve it. Please help me.
推荐答案
我只是通过以下流程解决了这个问题.
I just fix this issue by the following process.
我这样做了:
mohin@mohin:~$ grep -i export ~/.bashrc
之后,它显示以下信息
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
export PATH="$HOME/.composer/vendor/bin:$PATH"
export PATH="$HOME/.composer/vendor/bin:$PATH"
export PATH="$HOME/.composer/vendor/bin:$PATH" source /home/mohin/.bashrc
export PATH="$HOME/.composer/vendor/bin:$PATH"
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
在这里我遇到了问题.我的意思是这一行 -
over here I got the issue. I mean this line -
export PATH="$HOME/.composer/vendor/bin:$PATH" 源/home/mohin/.bashrc
export PATH="$HOME/.composer/vendor/bin:$PATH" source /home/mohin/.bashrc
我打开 .bashrc
并通过以下命令删除这一行 -
I open .bashrc
and remove this line by the following command -
sudo nano /home/mohin/.bashrc
就是这样.问题修复.
这篇关于bash: 导出: `/home/mohin/.bashrc': 不是一个有效的标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!