查看Linux系统版本                                                                   

CentOS系统

# centos7查看命令
[root@localhost ~]# cat /etc/os-release # centos6/7通用命令
[root@localhost ~]# cat /etc/redhat-release
[root@localhost ~]# cat /etc/redhat-release | sed -r 's/.* ([0-9]+)\..*/\1/' # centos6/7通用命令
[root@localhost ~]# cat /etc/centos-release
[root@localhost ~]# cat /etc/centos-release | sed -r 's/.* ([0-9]+)\..*/\1/' # centos6/7通用命令
[root@localhost ~]# rpm -q centos-release
[root@localhost ~]# rpm -q centos-release | cut -d- -f3 # radhat或centos存在/etc/redhat-release这个文件。【命令 cat /etc/redhat-release】

Ubuntu系统

ubuntu@VM-0-9-ubuntu:~$ lsb_release -a

ubuntu@VM-0-9-ubuntu:~$ cat /etc/os-release

ubuntu@VM-0-9-ubuntu:~$ cat /etc/issue
ubuntu@VM-0-9-ubuntu:~$ less /etc/issue # ubuntu存在 : /etc/lsb-release 这个文件 【命令 cat /etc/lsb-release】

查看Linux内核版本                                                                   

[root@localhost ~]# cat /proc/version

[root@localhost ~]# uname -a

  

  

  

  

最新文章

  1. 使用Free Spire.XLS插入图表
  2. python学习笔记之module && package
  3. Lucene:信息检索与全文检索
  4. git研究1
  5. GRUB引导——menu.lst的写法
  6. 从ipad相机相册读取相片并保存
  7. Linux(Centos、Debian)之安装Java JDK及注意事项(转)
  8. 2014年度辛星完全解读html部分
  9. (中等) HDU 2295 , DLX+重复覆盖+二分。
  10. ceph-deploy出错UnableToResolveError Unable to resolve host
  11. [国嵌攻略][148][MTD系统架构]
  12. C#之Redis为所欲为
  13. MySQL日志专题
  14. 【APIO2016】【UOJ205】【LOJ2568】烟花表演 可合并堆
  15. js-notebook
  16. Libre OJ 130、131、132 (树状数组 单点修改、区间查询 -> 区间修改,单点查询 -> 区间修改,区间查询)
  17. elastic search query & filter & query_string
  18. 2017年蓝桥杯省赛A组c++第7题(正则问题)
  19. Dubbo(2)发布Dubbo服务
  20. MQ调研梳理

热门文章

  1. Python爬虫基础——正则表达式
  2. JavaWeb学习——Servlet相关的接口和类
  3. C#NULL条件运算符
  4. MySQL数据库~~~~~查询行(文件的内容)
  5. Oracle通过SQL语句查看table所引用的对象(View/Function/Procedure/Trigger)
  6. vue项目、路由
  7. golang+webgl实践激光雷达(一)激光扫描仪基础知识
  8. 搭建Harbor
  9. Springcloud 中 SpringBoot 配置全集 (收藏版)
  10. IT兄弟连 HTML5教程 HTML5表单 HTML表单设计2