This is a discussion on Linux set environment variables in my shell within the Shell scripting forums, part of the Development/Scripting category; How do I set environment variables in my shell? it should remain after a reboot TIA...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
| Sponsored Links | ||
|
|
|
||||
|
Add to /etc/profile for system-wide effector to /home/you/.bash_profile startup file.
If you are using BASH / KSH type Code:
export VARIABLE-NAME=VALUE export VAR1=foo Code:
setenv VARIABLE-NAME=VAULE setenv VAR1=foo Code:
set VARIABLE-NAME=VALUE set VAR1=foo http://www.cyberciti.biz/faq/environ...bsd-unix-bash/ |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Download Linux Shell scripting tutorial v1.06 lsst.zip | nixcraft | Shell scripting | 33 | 11-02-2008 07:11 PM |
| Linux UNIX SFTP in a Shell Script | Nishanthhampali | Shell scripting | 1 | 01-30-2008 02:16 PM |
| Fold Command with variables | Wannabee | Shell scripting | 1 | 09-27-2007 04:28 AM |
| Variables scope | fahur | Shell scripting | 3 | 04-13-2007 12:56 PM |
| How to change the login shell for Linux user | chimu | Getting started tutorials | 0 | 01-26-2007 08:20 PM |