Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

update time in linux

sudo date +"%d %b %Y %T %Z" -s "$(curl -s --head http://google.com | grep '^Date:' | cut -d' ' -f 3-)"
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #update #time #linux
ADD COMMENT
Topic
Name
4+9 =