Skip to content
LinuxHospital.com

LinuxHospital.com

Your Best Solution to all Linux Based Problems

  • Arch Linux
  • Centos
  • Debian
  • Fedora
  • Gentoo
  • Kali Linux
  • Linux Mint
  • Manjaro
  • Open Suse
  • Red Hat
  • Solus
  • Ubuntu
  • Zorin
  • Toggle search form

How to Change Date and Time on Debian Linux

Posted on February 11, 2023February 11, 2023 By oarsman No Comments on 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.

Debian Tags:how to change date and time on debian linux

Post navigation

Previous Post: How to Check the Firewall Status on CentOS
Next Post: How to Create Desktop Icon on Fedora Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Distros

  • Arch Linux
  • Centos
  • Debian
  • Fedora
  • Gentoo
  • Kali Linux
  • Linux Mint
  • Manjaro
  • Open Suse
  • Red Hat
  • Solus
  • Ubuntu
  • Zorin

Most Popular Problems

Copyright © 2023 LinuxHospital.com.

Powered by PressBook Green WordPress theme