UNIX Operating System Question: Download Questions PDF
How can you get/set an environment variable from a program in UNIX?
![UNIX Operating System Interview Answer UNIX Operating System Interview Question](https://globalguideline.com/public/images/interview/34.png)
Answer:
Getting the value of an environment variable is done by using `getenv()'. Setting the value of an environment variable is done by using `putenv()'.
Download UNIX Operating System Interview Questions And Answers
PDF
Previous Question | Next Question |
List the system calls used for process management in UNIX? | How can a parent and child process communicate? |