查看CentOS-rehat-unbunt是哪个版本

uname命令

# uname --help
Usage: uname [OPTION]...
Print certain system information.  With no OPTION, same as -s.

  -a, --all                print all information, in the following order,
                             except omit -p and -i if unkNown:
  -s, --kernel-name        print the kernel name
  -n, --nodename           print the network node hostname
  -r, --kernel-release     print the kernel release
  -v, --kernel-version     print the kernel version
  -m, --machine            print the machine hardware name
  -p, --processor          print the processor type or "unkNown"
  -i, --hardware-platform  print the hardware platform or "unkNown"
  -o, --operating-system   print the operating system
      --help     display this help and exit
      --version  output version information and exit

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
For complete documentation, run: info coreutils 'uname invocation'
(base) [root@analysis ~]# uname -a
Linux analysis 4.4.216-1.el7.elrepo.x86_64 #1 SMP Wed Mar 11 09:13:43 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
(base) [root@analysis ~]# uname -s
Linux
(base) [root@analysis ~]# uname -n
analysis
(base) [root@analysis ~]# uname -r
4.4.216-1.el7.elrepo.x86_64
(base) [root@analysis ~]# uname -v
#1 SMP Wed Mar 11 09:13:43 EDT 2020
(base) [root@analysis ~]# uname -m
x86_64
(base) [root@analysis ~]# uname -p
x86_64
(base) [root@analysis ~]# uname -i
x86_64
(base) [root@analysis ~]# uname -o
GNU/Linux


lsb_release 命令

$ lsb_release -a
LSB Version:    n/a
distributor ID:    manjaroLinux
Description:    manjaro Linux
Release:    19.0.2
Codename:    Kyria

$ lsb_release -h
FSG lsb_release v1.4 prints certain LSB (Linux Standard Base) and
distribution information.

Usage: lsb_release [OPTION]...
With no OPTION specified it is the same as -v.

Options:
  -v, --version
    display the version of the LSB specification against which the distribution is compliant.
  -i, --id
    display the string id of the distributor.
  -d, --description
    display the single line text description of the distribution.
  -r, --release
    display the release number of the distribution.
  -c, --codename
    display the codename according to the distribution release.
  -a, --all
    display all of the above information.
  -s, --short
    display all of the above information in short output format.
  -h, --help
    display this message.
$ lsb_release -v
LSB Version:    n/a
$ lsb_release -i
distributor ID:    manjaroLinux
$ lsb_release -d
Description:    manjaro Linux
$ lsb_release -r
Release:    19.0.2
$ lsb_release -c
Codename:    Kyria
$ lsb_release -s
n/a

其他方法

1.

# cat /etc/centos-release
CentOS Linux release 7.7.1908 (Core)

2.

$ ls /etc/| grep rel
arch-release
lsb-release
manjaro-release
os-release
$ cat /etc/arch-release 
manjaro Linux
$ cat /etc/lsb-release 
disTRIB_ID=manjaroLinux
disTRIB_RELEASE=19.0.2
disTRIB_CODENAME=Kyria
disTRIB_DESCRIPTION="manjaro Linux"
$ cat /etc/os-release 
NAME="manjaro Linux"
ID=manjaro
ID_LIKE=arch
PRETTY_NAME="manjaro Linux"
ANSI_COLOR="1;32"
HOME_URL="https://www.manjaro.org/"
SUPPORT_URL="https://www.manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"
logo=manjarolinux

完结!!

 

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native