Differences

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

Link to this comparison view

Both sides previous revision Previous revision
server-administration:change-bash-language [2009-10-14 16:32:02]
garrett.plasky
server-administration:change-bash-language [2011-07-01 12:14:13] (current)
garrett.plasky Approved
Line 3: Line 3:
 To set your current shell to a different language you use the bash variable <​c>​LANG</​c>​ 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 <​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: 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 <​c>​locale -a</​c>​ 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}}