create new environment variable
how to create new environment variable??
Example : when I type "env", i will see list of variables like HOME,TERM .... . So i want to set a new variable Dir="/root/Question" And Dir variable will be display when i type "env" |
export Dir="/root/Question"
|
Thanks. But after i restart computer, I type "env", DIR is not displayed. How do i solve it?
|
you could add the command to your ~/.bash_profile file.. or create one and add it if it doesnt exist.
|
Or add it to the /etc/rc.d/rc.local file and it will be loaded everytime you start
|
Quote:
|
All times are GMT -5. The time now is 11:36 AM. |