RHEL 5 environment variables

Discussion in 'Installation/Configuration' started by g00ner, Dec 31, 2008.

  1. g00ner

    g00ner New Member

    Hi everyone new to the forum and to linux.

    I am a windoze admin by birth and need a little help figuring out how to do something in RHEL5.

    I have a windows batch file that checks to see what a particular environment variable is and then if it is A it goes and does something and if it is B it goes and does something slighlty different.

    How would l do this in RHEL5?

    How do l get a list of environment variables? In Windows l would go to the command prompt and type set

    How do l set an environement variable?

    Thanks in advance. :D
  2. falko

    falko Super Moderator ISPConfig Developer

    You can run
    to get a list of environment variables.

    I recommend to read this guide to learn shell scripting: http://tldp.org/LDP/abs/html/ - it's one of the best guides out there. :)

Share This Page