想查看内核版本,可以用命令
uname
-r
返回举例:
3.19.0-25-generic
想查看Ubuntu的版本,可以用命令
lsb_release
-a
返回举例:
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty
【完】
参考资料: http://itech.blog.51cto.com/192113/863870