53

I am completely new to Ubuntu, and I would permanently set an environment variable. I have read here that I have to set ~/.profile, but I don't know how to apply it. In my case I would permanently set export PATH="/home/name/anaconda/bin:$PATH", how could I do?

Simone
  • 633

1 Answers1

61
  • Open a terminal window with Ctrl+Alt+T.
  • Open the file for editing with

    gedit ~/.profile
    
  • Add the command to the bottom of the file.

  • Save and close gedit.

  • Log out and log in again.

Gunnar Hjalmarsson
  • 33,540
  • 3
  • 64
  • 94