+3 votes
207 views
How to Change the Date and Time of a debian server?

in Linux / Unix by (551k points) | 207 views

1 Answer

+4 votes
Best answer

Change the date and time of a debian server

To change the date and time of a Linux server we will do it with the date instruction in the following way:

date -set «year-month-day hour: min»

For example:

date -set «2013-07-02 18:46»

To see the date that appears in the BIOS can be obtained with the instruction  hwclock

In the same way we can change it with

hwclock -set -date = »2013-07-02 18:46"

If, on the other hand, we want to connect to an ntp server or a time server, we will have to configure the ntp service in debian .


by (551k points)

Related questions

+4 votes
1 answer
+4 votes
1 answer
+5 votes
1 answer
asked Feb 21, 2022 in Guides by backtothefuture (551k points) | 79 views
+5 votes
1 answer
asked Nov 20, 2021 in Guides by backtothefuture (551k points) | 98 views
+5 votes
1 answer
asked Oct 20, 2022 in iPhone Tutorial by backtothefuture (551k points) | 57 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,634 questions
10,766 answers
510 comments
3 users