查看内核版本命令:
uname -srm
输出结果:
Linux 3.13.0-24-generic x86_64
查看发行版本:
hostnamectl
输出结果:
Static hostname: xxx
Icon name: computer-vm
Chassis: vm
Boot ID: xxx
Virtualization: xen
Operating System: Ubuntu 14.04 LTS
Kernel: Linux 3.13.0-24-generic
Architecture: x86_64
查看Operating System字段即可得知当前的发行版本,可以用来查询对应版本的问题和解决办法。