linux信息怎么查询系统,linux查询系统信息方法

Lsb_release:

简介:lsb_release命令用来查看当前系统的发行版信息(prints certain LSB (Linux Standard Base) and Distribution information.)。有了这个命令就可以清楚的知道到底是RedHat的、还是别的发行版,还有具体的版本号,比如3.4还是5.4是redhad的还是centos、dubain等等。

1.依赖的包:redhat-lsb

2.格式:lsb_release [-选项]

不带选项的默认指定到-V。

-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

Use short output format for information requested by other options (or version if none).

-h, --help

Display this message.

-v  -版本显示针对其分布符合LSB规范的版本。

-i,-  ID显示字符串ID的分销商。

-d,-说明分布显示一行文字说明。

-r,-释放分布显示的版本号。

-c,-代号根据发行版本,显示的代号。

-a,-所有显示所有上述信息。

-s,-短期使用其他选项(或如果没有版本)所要求的信息,短输出格式。

-h,-帮助显示此消息。

Uname:

简介:主要用于查询主机和系统的相关版本信息,uname可显示linux主机所用的操作系统的版本、硬件的名称等基本信息

1.命令格式:uname [-选项]

-a,-所有详细输出所有信息,依次为内核名称,主机名,内核版本号,内核版本,硬件名,处理器类型,硬件平台类型,操作系统名称

-s,-内核名称打印内核名称

-n或-nodename显示主机在网络节点上的名称或主机名称

-r或–release显示linux操作系统内核版本号

-v,- ​​内核版本打印内核版本

-m或–machine显示主机的硬件(CPU)名

-p, -处理器打印处理器类型或“未知”

-l,-硬件平台打印硬件平台或“未知”

-o  -操作系统打印的操作系统名称

-  help显示帮助信息

-version显示uname的版本信息

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值