locale — Show Language and Regional Settings

The locale command shows the language, character encoding and regional settings used by the current shell session. Locale settings can affect sorting, dates, currency, messages and text handling.

Show current locale

locale

Useful checks

echo $LANG
echo $LC_ALL

Locale mismatches are common causes of unexpected character display, sorting differences, or script output changes.

Leave a Comment