Locale and timezone Flashcards

1
Q

Display current date and date settings

A

timedatectl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
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
3
Q

List timezones

A

timedatectl list-timezones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
Q

RHEL location of file with timezone settings

A

/etc/localtime

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
date -d+'30 days' -show the date +30 days from now
date -d+'15 days' +%Y-%m-%d
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
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
8
Q

Install ntp service

A

yum install chronyd

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

Display info about sources of chronyd

A

chronyc sources -v

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

Display info about system clock performance

A

chronyc tracking

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

Location to set up manually time sync servers

A

/etc/chrony.conf

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

Check if time is correct and not out of sync with ntp servers

A

systemctl status chronyd

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