Linux下查看版本号的命令

    技术2022-05-19  28

    1. 查看内核版本命令:

     

        cat /proc/version

     

        uname -r

     

        cat /etc/issue

     

    2,查看linux版本

     

    2.1  lsb_release -a

     

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

     

    2 .2  cat /etc/redhat-release

     

    2.3  rpm -q redhat-release

     

    注释: 2.2 2.3 只对 redhat linux 有效.

     


    最新回复(0)