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

in Linux / Unix by (552k points) | 223 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 (552k points)

Related questions

+4 votes
1 answer
+4 votes
1 answer
+5 votes
1 answer
asked Feb 21, 2022 in Guides by backtothefuture (552k points) | 93 views
+5 votes
1 answer
asked Nov 20, 2021 in Guides by backtothefuture (552k points) | 111 views
+5 votes
1 answer
asked Oct 20, 2022 in iPhone Tutorial by backtothefuture (552k points) | 78 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users