nerdexam
IBM

S2000-025 · Question #116

Which command adds a custom environment variable MY_VAR with the value custom_value to a user profile in AIX, and ensures it is available in all future login sessions for a specific user?

The correct answer is D. echo "export MY_VAR=custom_value" >> ~/.profile. See the full explanation below for the reasoning.

AIX 7.3 System Management

Question

Which command adds a custom environment variable MY_VAR with the value custom_value to a user profile in AIX, and ensures it is available in all future login sessions for a specific user?

Options

  • Aset MY_VAR=custom_value
  • Bexport MY_VAR=custom_value
  • Cecho "MY_VAR=custom_value" >> ~/.profile
  • Decho "export MY_VAR=custom_value" >> ~/.profile

How the community answered

(15 responses)
  • A
    13% (2)
  • B
    7% (1)
  • C
    7% (1)
  • D
    73% (11)

Topics

#environment variables#user profile#.profile#export

Community Discussion

No community discussion yet for this question.

Full S2000-025 Practice