Score:0

bash: export: `/home/shameen:/usr/bin:/usr/local/bin': not a valid identifier bash: ./bashrc: No such file or directory

cn flag

I just keep getting this error as soon as I open the terminal. Is there any way that I can remove it?

bash: export: `/home/shameen:/usr/bin:/usr/local/bin': not a valid identifier
bash: ./bashrc: No such file or directory

enter image description here

terdon avatar
cn flag
You have made some changes to your `~/.bashrc` file. Please [edit] your question and add the contents of your `~/.bashrc` file. Don't post an image of it, just copy/paste the text into your question and use the [formatting tools](https://askubuntu.com/help/formatting) to format it as code.
pLumo avatar
in flag
Exactly. Probably you tried to change the PATH variable. Remove the errorneous line and [check here](https://askubuntu.com/questions/60218/how-to-add-a-directory-to-the-path) how to do it properly. Use something like `export PATH="/home/shameen:$PATH"` instead of adding the directories manually to avoid bad effects.
mchid avatar
bo flag
Yes, [this similar question and answer](https://unix.stackexchange.com/questions/79658/not-a-valid-identifier-when-i-do-export-path) explains part of the problem as well.
waltinator avatar
it flag
Debug your `$HOME/.bashrc` with `bash -x $HOME/.bashrc`.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.