nerdexam
CompTIA

XK0-004 · Question #519

An administrator needs to ensure the JAVA_HOME variable is set correctly for all users that log in to the server. Which of the following files should be edited to set this variable?

The correct answer is A. /etc/profile. https://stackoverflow.com/questions/24641536/how-to-set-java-home-in-linux-for-all-users

System Management

Question

An administrator needs to ensure the JAVA_HOME variable is set correctly for all users that log in to the server. Which of the following files should be edited to set this variable?

Options

  • A/etc/profile
  • B/etc/skel/.profile
  • C/home/user/.profile
  • D/etc/rc.local

How the community answered

(60 responses)
  • A
    92% (55)
  • B
    2% (1)
  • C
    2% (1)
  • D
    5% (3)

Explanation

https://stackoverflow.com/questions/24641536/how-to-set-java-home-in-linux-for-all-users

Topics

#/etc/profile#JAVA_HOME#system-wide environment variables#login scripts

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice