lovespring
lovespring

Reputation: 19579

About the Environment Variables and init in linux

In linux, some program/process is created by the init, and also those process also need to set some Environment Variables.

I think, when the init start to run, the shell just don't started.

So, How can the init set the Environment Variables without a shell.

Upvotes: 1

Views: 583

Answers (1)

mmonem
mmonem

Reputation: 2841

Environment variables can be exported from a process to its parent(s) then is then inherited to other children and grand children including the shell

Upvotes: 2

Related Questions