Fix Incorrect Date in Ubuntu: Quick Terminal Guide

To adjust the date of the Ubuntu system, you can use the following command:

  1. Open the terminal.
  2. Use the following command to adjust the date and time:
sudo date MMDDhhmm[[CC]YY][.ss]

The meaning of the parameters here is as follows:

  1. MM: Month
  2. DD: Date
  3. hours
  4. mm: minutes
  5. CC: Century
  6. YY: Year
  7. ss:seconds

For example, if you want to set the date to October 15, 2022 at 3:45:30 PM, you can input the following command:

sudo date 101517452022.30
  1. Enter the password to confirm the change.

Additionally, you can also adjust the date and time using a graphical interface. Find the “Date and Time” option in the system settings, where you can adjust the system date and time manually or choose automatic synchronization.

bannerAds