How do you set time and date with Linux command line?

1 answer

Answer

1072387

2026-05-19 13:15

+ Follow

Linux
Linux

To set the time and date in Linux via the command line, you can use the timedatectl command. For example, to set the date and time to "2023-10-31 14:30:00," you would run sudo timedatectl set-time '2023-10-31 14:30:00'. Additionally, you can check the current settings with timedatectl and ensure the system clock is synchronized if needed. Remember that changes may require superuser permissions.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.