Linux/Redhat 7 system administrator's guide
1. system locale and keyboard configuration
겸겸사
2017. 3. 16. 10:46
- system locale 설정파일
/etc/locale.conf
Option | Description |
---|---|
LANG | Provides a default value for the system locale. |
LC_COLLATE | Changes the behavior of functions which compare strings in the local alphabet. |
LC_CTYPE | Changes the behavior of the character handling and classification functions and the multibyte character functions. |
LC_NUMERIC | Describes the way numbers are usually printed, with details such as decimal point versus decimal comma. |
LC_TIME | Changes the display of the current time, 24-hour versus 12-hour clock. |
LC_MESSAGES | Determines 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>