基本的 Linux shell 脚本:在 Linux 上获取 NTP?
我想编写一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你为什么要自己写?有很多现有的工具可以做到这一点。
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?
您可能想查看 ntpdate 联机帮助页以了解有关如何使用此命令的详细信息。
You probably want to take a look at ntpdate manpage for details on how to use this command.