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)- A13% (2)
- B7% (1)
- C7% (1)
- D73% (11)
Topics
#environment variables#user profile#.profile#export
Community Discussion
No community discussion yet for this question.