107.3 Localization And Internationalization Flashcards
(35 cards)
Shutdown and reboot the system.
shutdown -r
Cancel a pending shutdown.
shutdown -c
Stops the system immediately, without nicely killing processes or unmounting file systems, so not a clean way to shut down.
halt
Set system date and time.
date -s
In Fedora: Command to modify /etc/localtime and /etc/timezone files.
tzconfig
In Debian: Command to modify /etc/localtime and /etc/timezone files.
dpkg-reconfigure tzdata
A menu-driven way to change the timezone.
tzselect
Set UTC as the local time by creating a symbolic link.
ln -s /usr/share/zoneinfo/UTC /etc/localtime
Command to display all of the current locale settings.
locale
Command to display all available locales.
locale -a
Command to print (to the screen) all environment variables.
env
printenv
Command to convert between different character encodings.
iconv -f [from encoding] -t [to encoding] [file] > newfile
See a list of supported encodings.
iconv -l
Command to generate a locale from /etc/locale.gen.
locale-gen [language abbreviation] [ISO number]
Then add to /etc/locale.conf, which is what gets listed with locale -a
Command to demote an environment variable back to a shell variable.
export -n [name]
List localization and language environment variable overrides.
LC_* overrides LANG overrides LANGUAGE
Environment variable that sets the default language.
LANG
Overridden by any of the LC_* variables
Environment variable that sets collation rules for regular expressions and sorting.
LC_COLLATE
Environment variable that refers to a person’s name.
LC_NAME
Environment variable that specifies the type of hardware terminal to emulate when running the shell.
TERM
Environment variable that describes the shell that will interpret commands, the default is Bash.
SHELL
Term for a worldwide character encoding standard that can represent nearly all languages.
Unicode
Environment variable related to time that is not part of the locale settings.
LC_TIMEZONE
Environment variable that overrides the default time zone.
TZ