Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
server-administration:change-bash-language [2009-10-14 23:31:16]
garrett.plasky created
server-administration:change-bash-language [2011-07-01 19:14:13]
garrett.plasky Approved
Line 1: Line 1:
 ====== Change the Language in a Linux (BaSH) Shell ====== ====== Change the Language in a Linux (BaSH) Shell ======
  
-To set your current shell to a different language you use the bash variable LANG followed by the language you want:+To set your current shell to a different language you use the bash variable <c>LANG</c> followed by the language you want:
  
-<code console>LANG=en_us_8859_1</code>+<sxh bash>LANG=en_us_8859_1</sxh>
  
-If you want to set that so its used every time add an export line to your .bashrc for that user. the .bashrc file can be found in each users home dir, if they don't have one you can create it:+If you want to set that so its used every time add an export line to your <c>.bashrc</c> for that user. The .bashrc file can be found in each user's homedir, if they don't have one you can create it:
  
-<code console>export LANG=en_us_8859_1</code>+<sxh bash>export LANG=en_us_8859_1</sxh>
  
-The command locale will show you information about locale on the server. The command locale -a will give you a list of all the locale you can use. +The command locale will show you information about locale on the server. The command <c>locale -a</c> will give you a list of all the locale you can use. 
  
 {{tag>how-to shell}} {{tag>how-to shell}}