What is usage of Environment declaring in Shells? What are the problems will come if it is wrongly declared or not declared? Tell me details about Environments.
[B]Question asked by visitor Karthi[/b]
Printable View
What is usage of Environment declaring in Shells? What are the problems will come if it is wrongly declared or not declared? Tell me details about Environments.
[B]Question asked by visitor Karthi[/b]
Environment variables are commonly used to store the data which must be available to all programs on the system and operating system itself. ie. PATH, SHELL etc. In linux, by default, the scope of an environment variable is limited to the shell in which it is declared, but the export command can be used to make it available to child shells also. These are public variables which store global or environment data so called as environment variables. If a required EV is not found, the programs which use that EV would fail.