Locale Flashcards

1
Q

Display locale info

A
locale
here LANG var in set
localectl
also contains LANG var
LANG=en_US.utf8
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

List out available locales

A

localectl list-locales

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

Set new locale language

A

LANG=pl_PL.utf8

This will update all values shown in locale command with =pl_PL.utf8

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

Util to convert files from one char encoding to another

A

iconv -f ISO-8859-1 -t UTF-8 -o new_utf8_file old_iso8859_file

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

Update locale permanently

A

localectl set-locale el_GR.iso88597

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

Display date

A
date -u UTC time
date +%F -full date
date +%D -M/D/Y
date +%m-%d-%Y
date +%a -Thu
date +%A -Thursday
date +%b -Jun
date +%d- 31
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Display current date and date settings

A

timedatectl

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

Apply time settings

A

timedatectl set-time “2020-01-01 01:00:25”

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

List timezones

A

timedatectl list-timezones

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

Set timezone

A

timedatectl set-timezone “America/New_York”

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

Menu-driven util to set up timezone

A

tzselect

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

RHEL location of file with timezone settings

Debian location of file with timezone settings

A

/etc/localtime

/etc/timezone

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