Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
Created July 14, 2020 07:42
Show Gist options
  • Save v-thomp4/8c4efc9b1480495e772f31e3f343128b to your computer and use it in GitHub Desktop.
Save v-thomp4/8c4efc9b1480495e772f31e3f343128b to your computer and use it in GitHub Desktop.
Set Time, Date Timezone in Linux from Command Line
Set date from the command line
date +%Y%m%d -s "20120418"
Set time from the command line
date +%T -s "11:14:00"
Set time and date from the command line
date -s "19 APR 2012 11:14:00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment