Giter Site home page Giter Site logo

linux-guide's Introduction

Linux学习笔记

Readthedocs文档地址 Linux学习笔记


本笔记目前持续不断地更新与完善。这份笔记旨在为Linux初学者提供一个关于Linux日常使用的参考手册。

主题包括:

  • Shell
  • 用户管理
  • 常用命令
  • (待补充)

linux-guide's People

Watchers

 avatar  avatar  avatar

Forkers

iofdata

linux-guide's Issues

ubuntu设置系统时间与网络时间同步

ubuntu设置系统时间与网络时间同步

Linux的时间分为System Clock(系统时间)和Real Time Clock (硬件时间,简称RTC)。

  • 系统时间:指当前Linux Kernel中的时间。
  • 硬件时间:主板上有电池供电的时间。

查看系统时间的命令:#date

设置系统时间的命令:#date –set(月/日/年 时:分:秒)

例:#date –set "10/11/10 10:15"

查看硬件时间的命令:# hwclock

设置硬件时间的命令:# hwclock –set –date = (月/日/年 时:分:秒)

上述提到的是手动设置时间到一个时间点,可能与当前网络的时间有误差。

与时间服务器上的时间同步的方法

  1. 安装ntpdate工具
# sudo apt-get install ntpdate
  1. 设置系统时间与网络时间同步
# ntpdate cn.pool.ntp.org
  1. 将系统时间写入硬件时间
# hwclock --systohc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.