osroot

查看系统版本

几种查看linux版本信息的方法: 
1. uname -a 
2. cat /proc/version 
3. cat /etc/issue 
4. lsb_release -a 

详解:

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686 athlon i386 GNU/Linux

[root@localhost ~]# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5 (Final)
Release:        5
Codename:       Final
这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。

分类:

技术点:

相关文章:

  • 2022-01-16
  • 2021-11-29
  • 2022-01-06
  • 2021-10-11
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-26
  • 2021-08-04
  • 2022-02-08
  • 2021-09-16
  • 2021-09-07
  • 2021-09-04
  • 2021-12-30
相关资源
相似解决方案