Skip to content

Instantly share code, notes, and snippets.

@te2u
Created September 11, 2013 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save te2u/6519394 to your computer and use it in GitHub Desktop.
Save te2u/6519394 to your computer and use it in GitHub Desktop.
ntpdateコマンドを使った時刻同期。 ローカルの仮想マシンを立ち上げた際に実行して時刻を同期する。
#!/bin/bash
set -eu
NTP_SERVER="ntp.nict.jp"
sudo ntpdate -u $NTP_SERVER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment