Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

How to reset time in Ubuntu after replacing CMOS battery?

+1
−0

How to reset time in Ubuntu after replacing CMOS battery?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

2 answers

You are accessing this answer with a direct link, so it's being shown above all other answers regardless of its score. You can return to the normal view.

+1
−0

By default modern Ubuntu versions run the service systemd-timesyncd in the background. It fetches the time at regular intervals and should automatically set your system time when an NTP server is reachable.

Setting the time in Ubuntu manually

Since Ubuntu use systemd, the normal systemd procedure with timedatectl is used.

From man timedatectl:

set-time [TIME]
Set the system clock to the specified time. This will also update the RTC time accordingly. The time may be specified in the format "2012-10-30 18:17:16".

So, to set the time manually just run the command:

sudo timedatectl set-time "2025-01-07 18:17:16"

Setting the time automatically

I cant't find a concrete command to trigger an NTP sync, but restarting the systemd-timesyncd service should do the trick if you don't want to wait for the automatic sync.

sudo systemctl restart systemd-timesyncd
History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

+1
−0

TL;DR BIOS Setup, not Operating System

In most systems there is a user-accessible setup page that is part of the BIOS. This is accessed before starting Linux, Windows or any other operating system. The process to get to the setup page varies by manufacturer. Typically it is an F-key (F1, F2, F10, F11, F12 - but could be any) or Delete or some other key pressed during the very beginning of the startup process. On some systems there will be a display showing what key to press. If not, check the manufacturer's web site for information about your particular model.

Once you are in the BIOS setup page it is usually fairly simple to set the date/time, save the changes and restart the computer. Linux (and just about any other operating system since MS/PC-DOS 3.0) will read the date/time automatically.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

OS can do it too (1 comment)

Sign up to answer this question »