Setup Internet Time On Linux With 1 Command (Ubuntu & All Debian Based)

As the article topic suggests, after going through it you will be able to set/sync internet time on your Debian based Linux distro. This includes all Ubuntu based and other. To setup internet time we will use a small package that is officially available on Debian stable repository. The package name is rdate.

What is rdate?

rdate is a simple command line tool for Linux that is similar to ntp (package). rdate is a utility tool to sync internet time with your machine. You get a variety of options to sync time through it. You will need to define a time server to sync or print current local time.

Enough about rdate now lets see how you can sync internet time with one command. But sure only after installing it, its a single command far to sync time. And installation is child's play/easy as pie.

Although rdate comes with pre-installed on most distro, lets see how you install it on a Debian machine.
Make sure your OS is uptodate, open terminal and do as below,
sudo apt install rdate
Now that the installation is finished lets set the time.

Sync Internet Time With One Command
If you are eager to set time,
sudo rdate -n -s
This command will set your time form the given server and of course you can use other time servers, you can find other down below. Ain't this easy?? Easy and simplier than ntp.

To print the time (no setting),
rdate -n -p          #to print the time on your teminal, just to see
You can use the below time servers incase one is down or you just dont wanna use one.

On some servers you might need to use -n option to use SNTP protocol. Like (sudo rdate -n -s

And that's all folks, hope you enjoyed syncing your time...:) Have a good day and keep coming.


  1. Setting up internet time on my Debian-based Linux distro has always been a bit of a puzzle for me, but after stumbling upon this insightful article, I'm thrilled to have found a straightforward solution. The step-by-step guide, particularly focusing on the utilization of the official Debian stable repository package called 'rdate,' makes the entire process seem like a breeze. The clarity in instructions not only demystifies the intricacies of syncing internet time but also assures users of compatibility across various Debian and Ubuntu-based distributions. As I delve into implementing these instructions, I can't help but appreciate the author's commitment to simplicity. Moreover, this newfound knowledge is not only valuable for enhancing my Linux experience but also aligns seamlessly with my academic pursuits, as a Computer Science student availing myself of an essay writing service uk based for additional support. This article not only aids in optimizing my system but also subtly underscores the diverse applications of Linux knowledge in various spheres, including academics.

  2. Companion homecare services offer invaluable support, fostering independence and enhancing quality of life with personalized care and companionship.

Previous Post Next Post