how to use locale command and its examples

  • About locale : Get locale-specific information
  • I comes from: “glibc-common-2.12” package.
  • Configuration Files:
  • Path: /usr/bin/locale

Examples:

1. To get the locale specific information

$ locale

2. To get the names of available locale

$ locale -a
$ locale –all-locales 

3. To write names of available charmaps

$ locale -m
$ locale –charmaps 

4. To write the names of selected categories

$ locale -c 
$ locale –category-name 

5. To write names and values of selected keywords

$ locale -k
$ locale –keyword-name

 

Leave a Reply

Your email address will not be published. Required fields are marked *