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
localeUseful checks
echo $LANG
echo $LC_ALLLocale mismatches are common causes of unexpected character display, sorting differences, or script output changes.