Locale and timezone Flashcards
1
Q
Display current date and date settings
A
timedatectl
2
Q
Apply time settings
A
timedatectl set-time “2020-01-01 01:00:25”
3
Q
List timezones
A
timedatectl list-timezones
4
Q
Set timezone
A
timedatectl set-timezone “America/New_York”
5
Q
RHEL location of file with timezone settings
A
/etc/localtime
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
7
Q
Menu-driven util to set up timezone
A
tzselect
8
Q
Install ntp service
A
yum install chronyd
9
Q
Display info about sources of chronyd
A
chronyc sources -v
10
Q
Display info about system clock performance
A
chronyc tracking
11
Q
Location to set up manually time sync servers
A
/etc/chrony.conf
12
Q
Check if time is correct and not out of sync with ntp servers
A
systemctl status chronyd