kramer

察看linux 发行版

好像没有太通用的方法。

看一下/etc/redhat-release。  redhat 系列(包括centos) 会有如下内容

[root@localhost ~]# cat /etc/redhat-release 
CentOS Linux release 7.0.1406 (Core) 

 

看一下/etc/issue。 ubuntu内容如下

root@git-server:~# cat /etc/issue
Ubuntu 14.04 LTS \n \l

 

分类:

技术点:

相关文章:

  • 2022-03-11
  • 2021-09-13
  • 2022-01-19
  • 2021-12-07
  • 2022-02-09
  • 2021-12-06
  • 2021-12-05
猜你喜欢
  • 2022-02-13
  • 2022-01-28
  • 2021-12-25
  • 2021-05-20
  • 2021-11-30
  • 2021-12-31
  • 2021-12-14
相关资源
相似解决方案