0

enter image description hereEverytime I open the Windows-Terminal or Kali Linux using WSL-2 I'm getting this message and don't know how to fix it. I'm new to Linux and couldn't find the answers.

See Image: See Image

  • The error is due to a syntax error in your PATH variable more than likely. – Ramhound Jul 24 at 11:48
  • Can you share your .bashrc file? – Mureinik Jul 24 at 11:57
  • @Ramhound so how can i solve it ? – Nitin Mehta Jul 26 at 13:38
  • @Mureinik I have added an image of the path written in my .bashrc file. Hope it can help to solve the problem – Nitin Mehta Jul 26 at 14:00
0

You have spaces in your paths. You need to escape them, e.g., by quoting them:

export PATH="/mnt/c/Program Files/Notepad++/":/path/to/other/stuff
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.