查看 Linux 系统信息

查看 Linux 系统信息
查看 Linux 发行版信息
uname -a 查看详细系统信息
uname 查看系统类型
uname -r 查看版本
cat /proc/version
file /bin/ls
查看发行版信息:
cat /etc/issue
cat /etc/redhat-release 仅适用于RedHat、CentOS
系统位数:
getconf LONG_BIT


[root@VPS ~]# uname -r
2.6.32-504.el6.x86_64
[root@VPS ~]#
[root@VPS ~]#
[root@VPS ~]# uname -a
Linux VPS 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@VPS ~]#
[root@VPS ~]#
[root@VPS ~]# getconf LONG_BIT
64
[root@VPS ~]#
[root@VPS ~]# cat /etc/issue
CentOS release 6.6 (Final)
Kernel \r on an \m
[root@VPS ~]#
[root@VPS ~]#
[root@VPS ~]# cat /proc/version
Linux version 2.6.32-504.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) ) #1 SMP Wed Oct 15 04:27:16 UTC 2014
[root@VPS ~]#
[root@VPS ~]#
[root@VPS ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)
[root@VPS ~]#
[root@VPS ~]#
[root@VPS ~]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
[root@VPS ~]#
[root@VPS ~]#



参考中号称通用的 lsb_release 命令并没有默认安装:
[root@VPS ~]# lsb_release -a
-bash: lsb_release: command not found
[root@VPS ~]# yum list | grep lsb
redhat-lsb.i686 4.0-7.el6.centos base
redhat-lsb.x86_64 4.0-7.el6.centos base
redhat-lsb-compat.i686 4.0-7.el6.centos base
redhat-lsb-compat.x86_64 4.0-7.el6.centos base
redhat-lsb-core.i686 4.0-7.el6.centos base
redhat-lsb-core.x86_64 4.0-7.el6.centos base
redhat-lsb-graphics.i686 4.0-7.el6.centos base
redhat-lsb-graphics.x86_64 4.0-7.el6.centos base
redhat-lsb-printing.i686 4.0-7.el6.centos base
redhat-lsb-printing.x86_64 4.0-7.el6.centos base
[root@VPS ~]#
[root@VPS ~]#



参考:
查看centos系统版本命令centos
查看CentOS版本方法 - 智慧云端日记 - 博客园
file命令_Linux file 命令用法详解:用来探测给定文件的类型。
LSB 简介







  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值