How can you get/set an environment variable from a program?
Answer / Roshni Kumari
You can get an environment variable using the getenv() function in C and set it by using setenv(), unsetenv(), or putenv(). In shell scripts, you can use export to set variables and print them with echo.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the architecture of unix operating system?
Is unix cli or gui?
Explain Sticky bit?
How to get the last word from a line in Unix file?
What are positional parameters in unix?
What is buffer header unix?
Explain how do you create special files like named pipes and device files?
How is unix different from other operating system?
What does the swapping system do if it identifies the illegal page for swapping?
Describe the term inode?
I want to invest in learning things that will get me good jobs in future. But wondering if Unix knowledge is something that is a MUST have or is it better to do any Data-warehouse tool (cognos, Qclik view, ETL etc..). Please suggest me.
How to display n-th line of a file in Unix?