系统 uname -a # 查看内核/操作系统/CPU信息 Linux hostname 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux head -n 1 /etc/issue # 查看操作系统版本号 Red Hat Enterprise Linux Server release 5.3 (Tikanga) cat /proc/cpuinfo
常用参数 -r, --show 读取并打印硬件时钟(read hardware clock and print result ) -s, --hctosys 将硬件时钟同步到系统时钟(set the system time from the hardware clock ) -w, --systohc 将系统时钟同步到硬件时钟(set the hardware clock to the current system time ) 使用示例 示例一 显示硬件时钟