标签:
一 查看linux内核版本
1) cat /proc/version
ubuntu@ubuntu:~$ cat /proc/version
Linux version 3.16.0-23-generic (buildd@kissel) (gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6) ) #31-Ubuntu SMP Tue Oct 21 18:00:35 UTC 2014
2) uname -a
ubuntu@ubuntu:~$ uname -a
Linux ubuntu 3.16.0-23-generic #31-Ubuntu SMP Tue Oct 21 18:00:35 UTC 2014 i686 i686 i686 GNU/Linux
3)uname -r
ubuntu@ubuntu:~$ uname -r
3.16.0-23-generic
二 查看linux版本
1) lsb_release -a
ubuntu@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic
注:lsb_release -a 命令适用所有linux系统,包括Redhat、SuSE、Debian等发行版。
2) cat /etc/issue
ubuntu@ubuntu:~$ cat /etc/issue
Ubuntu 14.10 \n \l
参考资料
http://blog.csdn.net/zhuying_linux/article/details/6859286
http://jingyan.baidu.com/article/ff4116259b127c12e48237a1.html
标签:
原文地址:http://www.cnblogs.com/banting/p/4656884.html