To set the environment variable for you only, (user omid), place your codeinto your .bash_profile file in your home directory. To make it system wide place it in /etc/profileCode:PATH=$PATH:/new_folder_path export PATH
Try this page, it seems to explain it fairly well
I tend to avoid editing /etc/profile as much as I can as it is fairly easy, (for me), to screw up the operating system, whereas in your .bash_profile the worst you can do is screw up your account!


Reply With Quote

Bookmarks