Set environment variable path

Posted February 26, 2015 4.6k views

I have installed pip on my Ubuntu 14 server. I have created a file how can i run this file globally by setting environment variable.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

You can add the folder this file is in to your path by adding the following line to the .bashrc or .profile file in your home directory:

export PATH=$PATH:/path/to/your/file