基本的 Linux shell 脚本:在 Linux 上获取 NTP?

发布于 2024-11-13 23:33:29 字数 69 浏览 7 评论 0原文

我想编写一个 shell 脚本来获取 debian 服务器的 NTP(网络时间协议)信息。

我不知道怎么写?

I want to write a shell script for getting NTP(Network Time Protocol) info for debian server.

How can I write, I don't know ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半葬歌 2024-11-20 23:33:29

你为什么要自己写?有很多现有的工具可以做到这一点。 openntp 就是一个例子。看资质。

您是否有理由无法使用现有工具?

Why are you writing your own? There are lots of existing tools to do this. openntp is one example. Look in aptitude.

Is there a reason you can't use the existing tools?

一抹微笑 2024-11-20 23:33:29

您可能想查看 ntpdate 联机帮助页以了解有关如何使用此命令的详细信息。

You probably want to take a look at ntpdate manpage for details on how to use this command.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文