Skip to content

Instantly share code, notes, and snippets.

@rlan
Last active May 12, 2018 02:55
Show Gist options
  • Save rlan/b4fd73d2e7ba3693e674003d6a4925d3 to your computer and use it in GitHub Desktop.
Save rlan/b4fd73d2e7ba3693e674003d6a4925d3 to your computer and use it in GitHub Desktop.
Set Unix shell language to English (or to other languages)

Problem: shell language is not in English

$ hello
-bash: hello: コマンドが見つかりません

Solution: Add this to

export LANG="en_US.ISO-8859-1"

to your .bash_profile. Log out and log back in. Now:

$ hello
-bash: hello: command not found

Code strings for other languages, type:

locale -a

at the terminal and the system will list all that are supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment