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.
You can run Code: env 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.