CompTIA Linux+ (XK0-004) — Question 32
A junior systems administrator is configuring localization option environment variables. The administrator is given a checklist of tasks with the following requirements:
✑ View current settings of the LC_ALL environment variable only.
✑ Modify the LANG environment variable to US English Unicode.
Given this scenario, which of the following should be performed to meet these requirements? (Choose two.)
Answer options
- A. echo $LC_ALL
- B. locale
- C. cat $LC_ALL
- D. export LANG = en_US.UTF-8
- E. export $LANG = en_US.UTF
- F. stty
Correct answer: A, D
Explanation
The correct answer includes option A, which allows the administrator to see the current value of the LC_ALL variable, and option D, which properly sets the LANG variable to US English Unicode. Options B and C do not specifically meet the requirement to view only the LC_ALL variable, while options E and F contain syntax errors or are unrelated to the tasks at hand.