How can I set shell environment variables in linux? I've got FC 5 but I also want a general config file or a command.
nanosani 20 Technize.net addict Team Colleague
Recommended Answers
Jump to Post/etc/profile for "world" wide variables. The basic PATH and sometimes TMOUT is usually set here.
.bashrc or .profile for a given user or yourself.
Edit the file and add something like:export MYVAR="SOME VALUE"
Save the file, then source it
source .bashrc # or source .profile
That what you …
All 4 Replies
jim mcnamara 19 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
nanosani 20 Technize.net addict Team Colleague
John A 1,896 Vampirical Lurker Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.