美文网首页
ubuntu系统版本查询命令方法

ubuntu系统版本查询命令方法

作者: zlchen | 来源:发表于2023-09-02 11:03 被阅读0次
    cat /proc/version 查看
    $ cat /proc/version
    Linux version 5.4.0-113-generic (buildd@lcy02-amd64-067) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2022
    
    uname -a 查看
    $ uname -a
    Linux fnnehdxds6lztku 5.4.0-113-generic #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
    
    lsb_release -a 查看
    $ lsb_release -a
    LSB Version:    core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
    Distributor ID: Ubuntu
    Description:    Ubuntu 20.04.4 LTS
    Release:    20.04
    Codename:   focal
    
    hostnamectl 查看
    $ hostnamectl
       Static hostname: fnnehdxds6lztku
             Icon name: computer-vm
               Chassis: vm
            Machine ID: 20220524174107033216151293301385
               Boot ID: 2eedfe0be6cc45c49ab3761e766c1f62
        Virtualization: kvm
      Operating System: Ubuntu 20.04.4 LTS
                Kernel: Linux 5.4.0-113-generic
          Architecture: x86-64
    
    cat /etc/issue 查看
    $ cat /etc/issue
    Ubuntu 20.04.4 LTS \n \l
    

    相关文章

      网友评论

          本文标题:ubuntu系统版本查询命令方法

          本文链接:https://www.haomeiwen.com/subject/uqyxvdtx.html