Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I may be asking a basic question for many of you.

What is exactly linux environment ? and what the relation between linux environment and shell? and what the relation between linux environment and running processes?

Sorry if my question makes no sense !

share|improve this question

1 Answer 1

I assume by "Linux environment" you mean environment variables?

Env vars are local to every shell - so if you set one in one terminal window it will not show up in another. Child processes will inherit a copy of their parent's environment, so if you set particular variables and then start a program, that program will see those variables, too - but neither parent nor child can change the other's variables.

Does that answer your question?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.