How to modify time zone, date and time in Ubuntu

Current system time

root@ubuntu :/# date -r
Results the time zone is – 0500, and the Chinese time zone should be + 8
0It’s East eight. We need to change the time zone

1. Run tzselect

root@ubuntu :/# tzselect

Here we choose Asia, China after confirmation, and finally Beijing

2. Copy the file to the / etc directory

root@ubuntu :/# cp /usr/share/zoneinfo/asia/shanghai /etc/localtime
3. Check the time again, date – R, which has been modified to Beijing time

Change time
Revision time

Sudo date – s mm / DD / YY / / modified
dateSudo date – s HH: mm: SS / / modification time
After the modification time, modify the hardware CMOS time

Sudo hwlock &; systohc / / is very important. Without this step, the next time is still not allowed

Related Article
WordPress 3D rotating tag cloud

This 3D tag cloud is not the flash version of WP cumulus n years ago. This 3D rotating tag cloud Read more

Using wampserver tool to build local PHP + MySQL environment

No matter whether we use domestic space or foreign hosts, we prefer to go online after local debugging before setting Read more

How to install Linux system on Android phone

In our daily use of Android mobile phones, the installation of a complete Linux system will make mobile phones become Read more

How to backup your website data with Android phone

No matter what you do, backup is very necessary and important. Backup is just in case. Most of the time, Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image