Setting environment variables (stop laughing!)

Levi

Member
Nov 26, 2001
30
0
0
Sorry you guys have to deal with yet another n00b here... :)

I'm about to go mental if someone won't tell me how to set environment variables under Linux.
I'm running Red Hat 7.2 and want to set some variables for for example the JDK runtime modules (set PATH and all that).
I think I've searched the entire internet for a simple guide telling me how to do it, but can't find squat!

I would really apprechiate any assistance in this matter! :)

Best regards,

Levi
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
It depends on the shell in use, bash is the default in nearly all Linux distributions and if you're using it you'd edit .bash_profile in your home directory, there may be a PATH statement in there already you can change. For all users, /etc/profile usually works.