nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #236

LFCS Question #236: Real Exam Question with Answer & Explanation

The correct answer is C: export LANG="pt". The language for messages from internationalized programs is primarily controlled by the LANG and LC_MESSAGES environment variables.

Submitted by carter_n· Apr 18, 2026Essential Commands

Question

Which of the following commands should be added to /etc/bash_profile to change the language of messages from an internationalised program to Portuguese (pt)? (Select TWO).

Options

  • Aexport LANGUAGE="pt"
  • Bexport MESSAGE="pt"
  • Cexport LANG="pt"
  • Dexport LC_MESSAGES="pt"
  • Eexport ALL_MESSAGES="pt"

Explanation

The language for messages from internationalized programs is primarily controlled by the LANG and LC_MESSAGES environment variables.

Common mistakes.

  • A. LANGUAGE is a GNU extension that specifies a priority list of languages for message translation, but LANG and LC_MESSAGES are the more fundamental POSIX variables for setting the current locale and message language directly.
  • B. MESSAGE is not a standard environment variable used for controlling language settings in internationalized programs.
  • E. ALL_MESSAGES is not a standard environment variable used for controlling language settings in internationalized programs.

Concept tested. Linux locale and language configuration

Reference. https://man7.org/linux/man-pages/man7/locale.7.html

Topics

#Locale#Environment Variables#Shell Configuration#Internationalization

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions