107.3 Localization And Internationalization Flashcards
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]