日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

Ubuntu 18.04时间同步

發布時間:2023/11/27 生活经验 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Ubuntu 18.04时间同步 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Ubuntu 18.04時間同步

原文連接:
原文鏈接

內容:

Sync Clock with Time Servers through the Command Line
Check Current Time Status
The timedatectl command lets you check the current time status of your system clock. Open your Ubuntu terminal through Ctrl+Alt+T and enter the following command:

$ timedatectl status

Check time with timedatectl

Among other details, you can see the Local time, the Universal time and also if your system clock is synchronized with the internet time servers or not.

Synchronize the System Time
The chronyd command lets you check the time by which your system clock is off. If you run a chronyd command without installing the utility first, you will get the following message:

The chronyd command

Please install the Chrony utility as follows:

$ sudo apt install chrony

You can then use the following command to see how much your time varies from the internet server. The “System clock wrong by” line in the output indicates this thing.

$ sudo chronyd -Q
You can also synchronize the system time and see the “System clock wrong by” information in one go through the following command:

$ sudo chronyd -q
In the following example, you can see that when I first ran the chronyd -q command, my system was off by 95.9 seconds. After running the command, my internet time was reset and that can be observed when I re-ran the command. This time my system clock is only off by -0.001446 seconds which is an ignorable difference.

Using chronyd

On the Ubuntu Desktop (GUI)
Operating Systems these days are set to fetch Date & Time and Time zones automatically through the internet. You can set your system to fetch date and time according to the selected time zone as follows:

Click the downward arrow located at the top right corner of your Ubuntu desktop and then click the settings icon located at the bottom left corner:

Click on settings Icon

OR

Type Settings in the Ubuntu Dash as follows:

Open settings

Click the Details tab and then select the Date & Time option.

Make sure your Automatic Date & Time button is turned on. This will enable you to automatically fetch the current date and time from the internet server.

Automatic date and time synchronisation

總結

以上是生活随笔為你收集整理的Ubuntu 18.04时间同步的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。