Last active
April 6, 2017 13:24
-
-
Save romach/5d7533a150618c2b2e6f64a998325ed3 to your computer and use it in GitHub Desktop.
Change date to 2 days in past
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # back in past for 2 days | |
| sudo date -s "$(date --date '-2 day')" | |
| # back in past for 1 hour | |
| sudo date -s "$(date --date '-1 hour')" | |
| # set date | |
| sudo date -s "17 Sep 2016 09:44:00" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment