How to Change Date in Linux?
Contents

The server and system clock needs to be on time.

  • 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”
  • Linux check date from command line date.
  • Set hardware clock.
  • Set the timezone.

How do I change the timezone in Linux?

To set the timezone in Linux, update /etc/localtime with the appropriate timezone file from /usr/share/zoneinfo.

How do I change date and time in Ubuntu terminal?

Change the date and time

  1. Open the Activities overview and start typing Settings.
  2. Click on Settings.
  3. Click Details in the sidebar.
  4. Click Date & Time in the sidebar to open the panel.
  5. If you have Automatic Date & Time set to ON, your date and time should update automatically if you have an internet connection.
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest