$ date –set=”$(ssh user@server date)”

Shorter, easier to remember version of cmd#7636

NTP is better, but there are situations where it can’t be used. In those cases, you can do this to sync the local time to a server.

View this command to comment, vote or add to favourites
View all commands by splante

commandlinefu.com

by David Winterbottom (codeinthehole.com)

Tags: