Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to update time in ubuntu

sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #update #time #ubuntu
ADD COMMENT
Topic
Name
3+6 =