0

About reporting and settings for date and time exists available the date and timedatectl commands - it according with the most common results available through the web. Practically both do the same.

So when for an explicit scenario(s) one would be mandatory over the other?

1

date is a part of GNU coreutils, it is available on all Linux systems, it is frequently used in scripting.

timedatectl is a part of systemd.

The two tools are used to set/display time and date.

see : info date, man timedatectl

1

date is an old UNIX tool, timedatectl is a new tool by systemd creators, so it's only available in distros with systemd.

Use whatever you like whenever it's available.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.