查看Linux系统版本信息的命令

几种查看Linux版本信息的方法:

  1. uname -a Webjx.Com

  2. cat /proc/version

  3. cat /etc/issue

  4. lsb_release -a

Webjx.Com

  详解 lsb_release -a

  登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如: Webjx.Com

  1. [[email protected] ~]# lsb_release -a

  2. LSB Version: 1.3 Webjx.Com

  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] ~]# Webjx.Com

  这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。

猜你喜欢

转载自nkliuliu.iteye.com/blog/826681