- system locale 설정파일


/etc/locale.conf


OptionDescription
LANGProvides a default value for the system locale.
LC_COLLATEChanges the behavior of functions which compare strings in the local alphabet.
LC_CTYPEChanges the behavior of the character handling and classification functions and the multibyte character functions.
LC_NUMERICDescribes the way numbers are usually printed, with details such as decimal point versus decimal comma.
LC_TIMEChanges the display of the current time, 24-hour versus 12-hour clock.
LC_MESSAGESDetermines the locale used for diagnostic messages written to the standard error output.


 - localectl


root@ip-10-90-10-20:/root> localectl status

   System Locale: LANG=en_US.UTF-8

       VC Keymap: us

      X11 Layout: us



root@ip-10-90-10-20:/root> localectl list-locales

aa_DJ

aa_DJ.iso88591

aa_DJ.utf8

aa_ER

aa_ER.utf8

aa_ER.utf8@saaho

aa_ER@saaho

...

 - locale 설정

root@ip-10-90-10-20:/root> localectl set-locale LANG=locale
root@ip-10-90-10-20:/root> localectl
   System Locale: LANG=locale
       VC Keymap: us
      X11 Layout: us
root@ip-10-90-10-20:/root> localectl set-locale LANG=en_GB.utf8
root@ip-10-90-10-20:/root> localectl
   System Locale: LANG=en_GB.utf8
       VC Keymap: us
      X11 Layout: us
root@ip-10-90-10-20:/root>



root@ip-10-90-10-20:/root> localectl list-keymaps
ANSI-dvorak
amiga-de
amiga-us
applkey
at


root@ip-10-90-10-20:/root> localectl set-keymap map
root@ip-10-90-10-20:/root> localectl
   System Locale: LANG=en_US.utf8
       VC Keymap: map
      X11 Layout: us
root@ip-10-90-10-20:/root> localectl set-keymap us
root@ip-10-90-10-20:/root> localectl
   System Locale: LANG=en_US.utf8
       VC Keymap: us
      X11 Layout: us
       X11 Model: pc105+inet
     X11 Options: terminate:ctrl_alt_bksp
root@ip-10-90-10-20:/root>

root@ip-10-90-10-20:/root> localectl set-x11-keymap map

root@ip-10-90-10-20:/root> localectl

   System Locale: LANG=en_US.utf8

       VC Keymap: n/a

      X11 Layout: map

root@ip-10-90-10-20:/root> localectl set-x11-keymap us

root@ip-10-90-10-20:/root> localectl

   System Locale: LANG=en_US.utf8

       VC Keymap: us

      X11 Layout: us

root@ip-10-90-10-20:/root>



'Linux > Redhat 7 system administrator's guide' 카테고리의 다른 글

8. YUM  (0) 2017.08.01
5. GAINING PRIVILEGES  (0) 2017.07.14
4. ACCESS CONTROL LISTS  (0) 2017.07.11
3. MANAGING USERS AND GROUPS  (0) 2017.07.05
2. CONFIGURING THE DATE AND TIME  (0) 2017.03.16

+ Recent posts