How can I switch the terminal output language from my native language to English, so I can post my Ask Ubuntu question with English terminal output (error messages)?
Open a terminal Ctrl+Alt+T and type:
Now the terminal output is in english language. You can check it with
It is possible to make a command to do that with a permanent
Restart the Bash shell. Now you have the command
bash function for terminal
Here is my bash function to switch between DE and EN locales.
You may extend this code with your preferred languages.
To use this, put it in your
Call it with
In general I suggest to change all 3 environment variables
Adapting to your language
Extending the code to your native language is quite simple. You can find the needed values by invoking the following command