How to Set Time, Timezone and Synchronize System Clock Using timedatectl Command| wiz maverick
Setting time in centos 7/linux 7:
It is always a good practice to maintain the correct time on your Linux server or system and it can have the following advantages:
maintain a timely operation of system tasks since most tasks in Linux are controlled by time.
correct time for logging events and other information on the system and many more.
# timedatectl status
# timedatectl
OR
# timedatectl | grep Time
To view all available timezones, run the command below:
#timedatectl list-timezones
#timedatectl list-timezones | grep Asia/D
# timedatectl set-timezone “Asia/Dhaka”
# timedatectl set-timezone UTC
# timedatectl set-timezone “Asia/Dhaka”
To set both date and time:
# timedatectl set-time ‘2019-09-30 16:14:50’
# timedatectl | grep local
Set your hardware clock to local timezone:
# timedatectl set-local-rtc 1
# timedatectl set-ntp true
# timedatectl set-ntp false
Nguồn:https://ftlinuxcourse.com/
Xem thêm Bài Viết:
- Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
- Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
- Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
- Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
- Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết
Comments
[root@localhost:~] timedatectl status
-sh: timedatectl: not found
Thanks for the clear video..&& its helpful.