Set environment variable $PATH globally
Set environment variable $PATH globally

Setting a path globally in your ubuntu installation is very easy. There are various way to do this. Here I am explaining how I did it.

  1. Open your terminal and type in “sudo vim /etc/bash.bashrc”
  2. Go to the end of the file
  3. Add “PATH=/path/which/you/want/to/set:$PATH” without quotes.

Thats it. Now close the current terminal and open it up again, it should be working fine. If it doesn’t, try logging out and logging in.

 

If it still doesn’t work, you can ask me by commenting below.