QuestionQ25

Operations

Which command defines an environment variable in the current shell and in all of its child processes?

  • A env VAR=value
  • B VAR=value
  • C set VAR=value
  • D export VAR=value
Explanation

export VAR=value assigns VAR in the current shell and marks it for export, so child processes inherit it in their environment.

Community Discussion

No comments yet. Be the first to start the discussion!