Linux: gestión del sistema

Ver la versión del sistema Linux                                                                   

Sistema CentOS

# comando centos7View 
[root @ localhost ~] # cat / etc / os-release 

# Comando general Centos6 / 7 
[root @ localhost ~] # cat / etc / redhat-release 
[root @ localhost ~] # cat / etc / redhat - release | sed -r's /.* ([0-9] +) \ .. * / \ 1 / ' 

# centos6 / 7 comandos generales 
[root @ localhost ~] # cat / etc / centos-release 
[root @localhost ~ ] # cat / etc / centos-release | sed -r's /.* ([0-9] +) \ .. * / \ 1 / ' 

# centos6 / 7 comandos generales 
[root @ localhost ~] # rpm -q centos -release 
[root @ localhost ~] # rpm -q centos-release | cut -d- -f3 

# El archivo / etc / redhat-release existe en radhat o centos. [Comando cat / etc / redhat-release]

Sistema 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 / problema 
ubuntu @ VM-0-9-ubuntu: ~ $ menos / etc / problema 

# ubuntu 存在: / etc / lsb-release 这个 文件 【命令 cat / etc / lsb-release】

Ver la versión del kernel de Linux                                                                   

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

[root @ localhost ~] # uname -a

  

  

 

  

 

 

  

 

Supongo que te gusta

Origin blog.csdn.net/qq_45533800/article/details/112529244
Recomendado
Clasificación