Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编写一个 shell 脚本来获取 debian 服务器的 NTP(网络时间协议)信息。
不知道怎么写?
为什么要自己写?有很多现有的工具可以做到这一点。openntp是一个例子。看资质。
openntp
您是否有理由不能使用现有工具?
您可能想查看 ntpdate 手册页以了解有关如何使用此命令的详细信息。