Linux系统查看系统信息

Ubuntu

root@ubuntu:~# 
root@ubuntu:~# uname -a
Linux ubuntu 3.13.0-32-generic #57~precise1-Ubuntu SMP Tue Jul 15 03:50:54 UTC 2014 i686 i686 i386 GNU/Linux
root@ubuntu:~# 
root@ubuntu:~# 
root@ubuntu:~# cat /proc/version
Linux version 3.13.0-32-generic (buildd@toyol) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #57~precise1-Ubuntu SMP Tue Jul 15 03:50:54 UTC 2014
root@ubuntu:~# 
root@ubuntu:~# 
root@ubuntu:~# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"
root@ubuntu:~# 
root@ubuntu:~# 
root@ubuntu:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 12.04.5 LTS
Release:	12.04
Codename:	precise
root@ubuntu:~# 
root@ubuntu:~#

CentOS

[root@localhost ~]$ 
[root@localhost ~]$ 
[root@localhost ~]$ cat /proc/version 
Linux version 3.10.0-693.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Aug 22 21:09:27 UTC 2017
[root@localhost ~]$ 
[root@localhost ~]$ 
[root@localhost ~]$ uname -a
Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]$ 
[root@localhost ~]$     
[root@localhost ~]$ cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core) 
[root@localhost ~]$ 
[root@localhost ~]$

 

posted @ 2021-04-07 14:34  hike_bug  阅读(70)  评论(0编辑  收藏  举报