107.3 Localization And Internationalization Flashcards

1
Q

Shutdown and reboot the system.

A

shutdown -r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Cancel a pending shutdown.

A

shutdown -c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Stops the system immediately, without nicely killing processes or unmounting file systems, so not a clean way to shut down.

A

halt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Set system date and time.

A

date -s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In Fedora: Command to modify /etc/localtime and /etc/timezone files.

A

tzconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In Debian: Command to modify /etc/localtime and /etc/timezone files.

A

dpkg-reconfigure tzdata

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A menu-driven way to change the timezone.

A

tzselect

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Set UTC as the local time by creating a symbolic link.

A

ln -s /usr/share/zoneinfo/UTC /etc/localtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Command to display all of the current locale settings.

A

locale

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Command to display all available locales.

A

locale -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Command to print (to the screen) all environment variables.

A

env

printenv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Command to convert between different character encodings.

A

iconv -f [from encoding] -t [to encoding] [file] > newfile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

See a list of supported encodings.

A

iconv -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Command to generate a locale from /etc/locale.gen.

A

locale-gen [language abbreviation] [ISO number]

Then add to /etc/locale.conf, which is what gets listed with locale -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Command to demote an environment variable back to a shell variable.

A

export -n [name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

List localization and language environment variable overrides.

A

LC_* overrides LANG overrides LANGUAGE

17
Q

Environment variable that sets the default language.

A

LANG

Overridden by any of the LC_* variables

18
Q

Environment variable that sets collation rules for regular expressions and sorting.

A

LC_COLLATE

19
Q

Environment variable that refers to a person’s name.

A

LC_NAME

20
Q

Environment variable that specifies the type of hardware terminal to emulate when running the shell.

A

TERM

21
Q

Environment variable that describes the shell that will interpret commands, the default is Bash.

A

SHELL

22
Q

Term for a worldwide character encoding standard that can represent nearly all languages.

A

Unicode

23
Q

Environment variable related to time that is not part of the locale settings.

A

LC_TIMEZONE

24
Q

Environment variable that overrides the default time zone.

A

TZ

25
Q

Linux locale settings include:

A
  1. character type
  2. language
  3. number formatting
  4. currency type and symbol
  5. collation
  6. date and time format
  7. a person’s name format
  8. printer paper default type
  9. telephone number format
  10. format for system messages
    More
26
Q

Term for a type of character encoding capable of encoding all possible characters (code points) defined by Unicode.

A

Unicode Transformation Format-8 (UTF-8)

Uses variable-length 8-bit code units for its encoding

27
Q

Term for a series of standards for 8-bit ASCII-based character encodings, published in 1987, intended for Western European languages.

A

ISO 8859

28
Q

Paths to user configuration files with precedence.

A

~/.bash_profile –> ~/.profile –> ~/.bashrc

29
Q

Paths to system configuration files with precedence.

A

/etc/environment –> /etc/profile –> /etc/bash.bashrc

30
Q

Path to the configuration file and environment variable to set all system messages to Japanese.

A

/etc/bash_profile

LC_MESSAGES=”ja”

31
Q

Path to the conf file where the locale is set for a user.

A

~/.profile

32
Q

Path to the directory that contains a list of all time zones.

A

/usr/share/zoneinfo/

33
Q

Path to the file that stores the default locale.

A

/usr/bin/locale

Overridden by LC_ALL

34
Q

Path to the binary file that is either a symbolic link to or copy of a time zone information file such as /usr/share/zoneinfo/Africa/Cairo.

A

/etc/localtime

35
Q

Path to the text file that sets the current system time zone.

A

/etc/timezone