日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

Shell中uname命令查看系统内核、版本

發布時間:2023/12/29 综合教程 28 生活家
生活随笔 收集整理的這篇文章主要介紹了 Shell中uname命令查看系统内核、版本 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

uname命令

描述

用于打印內核名稱和版本、主機名等系統信息。

用法

uname   [OPTION]...


參數 用法

-a     print all information
-s     print the kernel name
-n     print the network node hostname
-r     print the kernel release
-v     print the kernel version
-m     print the machine hardware name
-p     print the processor type or “unknown”
-i     print the hardware platform or “unknown”
-o     print the operating system


默認uname命令只打印內核的名稱

[root@test ~]# uname
Linux


只打印系統的主機名(與hostname命令相同)

[root@test ~]# uname -n
test.xuptip.com


打印內核版本信息

[root@test ~]# uname -r
3.10.0-123.el7.x86_64


打印系統的硬件名稱

[root@test ~]# uname -m
x86_64


打印系統的處理器類型的信息

[root@test ~]# uname -p
x86_64


打印系統的硬件平臺信息

[root@test ~]# uname -i
x86_64


打印上述所有信息

[root@test ~]# uname -a
Linux test.xuptip.com 3.10.0-123.el7.x86_64 #1 SMP Mon May 5 11:16:57 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

總結

以上是生活随笔為你收集整理的Shell中uname命令查看系统内核、版本的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。