Poor man's ntpdate

date -s "$(curl -sD - www.example.com | grep '^Date:' | cut -d' ' -f3-6)Z"

By: casueps
2019-12-20 10:10:14

2 Alternatives + Submit Alt

What Others Think

I am a part-time writer working with the online CV building services, and willing to pursue my career in the field of computer science. Recently, I got classes of ntpdate but didn't get how to apply the code. Can someone please explain to me this?
jabirsheikh · 57 weeks and 3 days ago
Writing academic papers becomes difficult when you are working on thesis, dissertation and assignment. So cover page for a research paper is here from Professionals. We understand that how hard is writing with research work our writers will provide the best help to the students. Our writing services help you to craft thesis or dissertation, or reference paper.
qwertic12 · 23 weeks and 3 days ago
learned alot here but are there any other alternatives? lifecoachsantabarbaraca.com
looneyhans · 14 weeks and 4 days ago
will starting doing this now.. thanks for helping me! baby photography
idasanka · 9 weeks and 6 days ago
kitchen remodeling boulder This is such a great opportunity
yeoyeo · 8 weeks and 2 days ago
South Dakota is an expansive, sparsely populated midwestern U.S. state where rolling prairies give way to the dramatic Black Hills National Forest. MaxRemind top rank medical billing company of USA offers medical billing services in South Dakota, medical credentialing services and home health agency software in Houston.
stevematt · 5 weeks and 5 days ago
love this soo much! stairs
sammm · 5 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: