A

Admin • 833.24K Points
Coach

Q. Which command is used to permanently add a new environment variable in Linux?

  • (A) Edit /etc/environment file
  • (B) export VAR=value
  • (C) setenv VAR=value
  • (D) env VAR=value
  • Correct Answer - Option(A)
  • Views: 35
  • Filed under category Linux
  • Hashtags:

Explanation by: Admin

Editing /etc/environment makes the variable available system-wide and permanent.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.