Skip to content

Instantly share code, notes, and snippets.

@thadeu
Last active February 5, 2020 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thadeu/e3b4e08a601cf2e48a6b4c63640f8ce4 to your computer and use it in GitHub Desktop.
Save thadeu/e3b4e08a601cf2e48a6b4c63640f8ce4 to your computer and use it in GitHub Desktop.
Check and Update date to debian

Check and Update date to debian

List timezones easily

  $ timedatectl list-timezones

Set timezone to America/Sao_Paulo

  $ timedatectl set-timezone America/Sao_Paulo

Update repositories

  $ apt update

Install tzdata

  $ apt install tzdata

Reconfigure it

  $ dpkg-reconfigure tzdata 

Check time config

  $ timedatectl

Update datetime of logs

  $ service rsyslog restart

Enabled NTP (optional)

  $ timedatectl set-ntp true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment