Daniel T.

Authored Comments

Excellent article. My first Linux experience was with Red Hat 6.0, where I setup a telnet server.
In the interest of posterity, I wish the images for these old Linux distros could be made available as cloud compute instances in AWS, GCP or any other cloud service providers. A virtual Linux museum for historical archiving purposes, spawn one and indulge in nostalgia.

Very useful article. Indeed, the date command, particularly the GNU date command is one of the most powerful open source utilities. One hidden treasure or feature of the date command is -d or --date option, where it accepts free format human readable date string.

What day was it exactly a year ago or one year in the future -
$ date -d 'last year'
Thu Dec 17 00:34:47 EST 2015
$ date -d 'next year'
Sun Dec 17 00:36:27 EST 2017

An hour ago in UTC -
$ env TZ=UTC date -d '1 hour ago'
Sat Dec 17 04:35:39 UTC 2016

And this -
$ date -d '10 years ago + 3 months + 2 days'
Mon Mar 19 01:39:36 EDT 2007

I have just blogged about it in my site - Practical uses of the GNU date command