Debian system modification time

Source: Internet
Author: User
Modify the system time of debian-Debian information of the Linux release version. The following is a detailed description. Date MMDDhhmm [CC] YY [. ss]

The parts of the command argument have the following meanings:
MM
A two-digit month, 01-12.
DD
A two-digit day of month, 01-31.
Hh
A two-digit hour, 00-24.
Mm
A two-digit minute, 00-59.
CC
An optional two-digit century; for example, 19 or 20.
YY
A two-digit year; for example, 99 or 00.
Ss
An optional two-digit second, 00-59.

The command displays the time you enter and then sets the system time:
Debian :~ # Date 073010411999
Fri Jul 3010:41:00 PDT 1999

Change to shanghai:
Debao:/etc # ls-l/etc/localtime
Lrwxrwxrwx 1 root 33 localtime->/usr/share/zoneinfo/Asia/Shanghai
And/etc/default/rcS? Magpie UTC ?? Didi? TC = no, which seems to be different from the bios settings and must be changed to UTC = yes.
Set the correct time: date MMDDHHYYYY (. SS)
Write back bios: hwclock -- systohc

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.