如何查看linux版本
2015-07-18 14:49
537 查看
一 查看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
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
相关文章推荐
- linux提取锁和信号灯经常使用
- gdb+gdbserver调试arm-linux程序
- linux 获取文件系统信息(磁盘信息)
- linux它SQL声明简明教程---WHERE
- Howto: Connect MySQL server using C program API under Linux or UNIX
- LINUX分区
- Linux通过使用pdb简单调试python计划
- Installing MySQL Server on CentOS
- CentOS 6.3+Python 2.7.10安装pycurl遇到的问题汇总
- linux系统下struct大小的计算总结
- centos安装openswan
- 在CentOS 6.3/6.5 64bit上为python 2.7.10安装pycurl模块
- Linux 注意
- linux常用命令或功能
- 如何在默认安装openjdk的Linux系统中安装独立JDK
- linux命令
- Linux驱动基础总结
- 【Linux】Ubuntu下录屏&&制作GIF
- Linux LVM过程问题
- Linux环境下stl库使用(map)