歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> SHELL編程 >> 查看各種Linux系統版本信息的Shell命令

查看各種Linux系統版本信息的Shell命令

日期:2017/3/2 16:52:48   编辑:SHELL編程
幾種查看Linux版本信息的方法:
 
  1. uname -a
 
  2. cat /proc/version
 
  3. cat /etc/issue
 
  4. lsb_release -a
 
  詳解 lsb_release -a
 
  登錄到服務器執行 lsb_release -a ,即可列出所有版本信息,例如:
 
  1. [[email protected] ~]# lsb_release -a
 
  2. LSB Version: 1.3
 
  3. Distributor ID: RedHatEnterpriseAS
 
  4. Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
 
  5. Release: 4
 
  6. Codename: NahantUpdate1
 
  7. [[email protected] ~]#
 
  這個命令適用於所有的linux,包括Redhat、SuSE、Debian等發行版。

Copyright © Linux教程網 All Rights Reserved