Saturday, May 5, 2012

How to setup Environment Variables in Linux/Windows

Linux:
Open your .bashrc, located in your /home/"user"/ and add this:

export PATH=${PATH}:~/path/to/your/executeable


Windows:
Start > Control Panel > System and Security > System > Click on "Advanced system settings" > Click on "Environment Variables"

Under user variables, click on "new" and then give your new variable a name such as "PATH" and for the Path, input the absolute directory of the file you wish to run.


For example: ";C:\Windows;C:\Windows\System32;C:\Program Files (x86)\Nmap;C:\Program Files (x86)\Python;C:\"



I have Nmap and Python executable from my Windows Command Prompt.


For Related Articles:

http://blog.burrowsapps.com/2011/10/android-adb-bash.html

No comments:

Post a Comment

Please make suggestions :)