17, Oct 2026 RSS feed ↗

How to Change Date and Time on Debian Linux

On Debian Linux, you can change the date and time using the date command in the terminal. However, this change will only persist until the next reboot. To set the system time permanently, you can use the timedatectl command.

Here is how you can change the date and time using timedatectl:

  1. Open a terminal window.
  2. Type the following command to see the current date and time:
$ timedatectl
  1. To set the date, use the following command:
$ sudo timedatectl set-time YYYY-MM-DD

Replace YYYY-MM-DD with the desired date.

  1. To set the time, use the following command:
$ sudo timedatectl set-time HH:MM:SS

Replace HH:MM:SS with the desired time.

  1. To set both the date and time, use the following command:
$ sudo timedatectl set-time 'YYYY-MM-DD HH:MM:SS'

Replace YYYY-MM-DD HH:MM:SS with the desired date and time.

Note that you need to have administrative privileges (i.e., be a member of the sudo group) to change the system time using timedatectl. After making the changes, you can verify the new date and time using the timedatectl command again.

E

Evren E.

Evren Elveren is the founder of LinuxHospital, iPhonePost, iPhonePedia, CasinoPost, SongArea, SongLyrics.band and LyricsKid. An entrepreneur active in online publishing and digital projects since 2006, he brings a publisher's perspective to the way technology, entertainment and online businesses develop. His background in architecture informs his interest in design, usability and the small details that make a product or website work well. Evren writes about consumer technology, Linux, digital finance and music, connecting product announcements with their wider business and cultural context. Across the network, his editorial focus is on clear explanations, useful comparisons and practical information that helps readers understand a change before deciding what to do next.

More from this author →