LinuxShell-系统信息命令

【版权申明】未经博主同意,谢绝转载!(请尊重原创,博主保留追究权)

LinuxShell目录传送门: https://blog.csdn.net/MACMACip/article/details/89890219

LinuxShell-系统信息命令

  1.arch
  2.uname

1.arch

$ man arch
  arch - print machine hardware name (same as uname -m)
  Print machine architecture.
  打印机器的架构.

arch 可见, 我的Linux系统是64位的.(32位系统的表现为: x86或x32)

2.uname

$ man uname
  uname - print system information
  Print certain system information. With no OPTION, same as -s.
  打印系统信息(如果没有添加选项, 则与"uname -s"的命令结果相同)

uname -a
-a, --all
  print all information, in the following order, except omit -p and -i if unknown:
  打印所有的系统信息, 使用以下的顺序.(如果-p和-i的命令选项的结果是未知的话, 则忽略它的结果.)

-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 (non-portable)
  打印处理器类型

-i, --hardware-platform
  print the hardware platform (non-portable)
  打印硬件平台

-o, --operating-system
  print the operating system
  打印操作系统名

由此可知, uname -a输出结果的意思如下:
Linux ubuntu 4.15.0-43-generic #46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

内核名网络节点名Linux内核的发行版本内核版本机器硬件名处理器类型硬件平台操作系统名
-s, --kernel-name-n, --nodename-r, --kernel-release-v, --kernel-version-m, --machine-p, --processor-i, --hardware-platform-o, --operating-system
Linuxubuntu4.15.0-43-generic#46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018x86_64x86_64x86_64GNU/Linux
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

安河桥

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值