zoukankan      html  css  js  c++  java
  • Ubuntu 查看系统版本

     Ubuntu 查看系统版本

     

    1.使用 cat /proc/version 查看

    root@pve:~# cat /proc/version
    
    Linux version 5.8.0-53-generic (buildd@lcy01-amd64-012) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021
    

      

    2.使用uname -a 查看

    root@pve:~# uname -a
    
    Linux pve.aimm.com 5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
    

      

    3.使用lsb_release -a 查看

    root@pve:~# lsb_release -a
    
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 20.04.2 LTS
    Release:	20.04
    Codename:	focal
    

      

    4.使用cat /etc/issue 查看

    root@pve:/data# cat /etc/issue
    
    Ubuntu 20.04.2 LTS 
     l
    

      

    5.使用 cat /etc/lsb-release 查看

    root@pve:/data# cat /etc/lsb-release 
    
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=20.04
    DISTRIB_CODENAME=focal
    DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"
    

      

    6.使用 cat /etc/os-release 查看

    root@pve:/data# cat /etc/os-release 
    
    NAME="Ubuntu"
    VERSION="20.04.2 LTS (Focal Fossa)"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 20.04.2 LTS"
    VERSION_ID="20.04"
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    VERSION_CODENAME=focal
    UBUNTU_CODENAME=focal
    

      

    -----------------------------------------要克服生活的焦虑和沮丧,得先学会做自己的主人-----------------------------------------
  • 相关阅读:
    java.lang.NoSuchMethodError:antlr.collections.AST.getLine() I
    T7 java Web day01 标签HTML
    T6 s1 day19
    T5 s5 Day18
    T5 s4 Day 17
    T5 s3 day16
    T5 s2 Day 15
    T5 s1 day14
    T4 S03 day 12
    T4 S01 day1
  • 原文地址:https://www.cnblogs.com/heyongboke/p/14842261.html
Copyright © 2011-2022 走看看